Fixed crash on exit in tr_utpPacket (#4348)
This commit is contained in:
parent
2f6315b649
commit
4a80f800a6
|
@ -214,7 +214,7 @@ static void event_callback(evutil_socket_t s, [[maybe_unused]] short type, void*
|
|||
}
|
||||
else
|
||||
{
|
||||
if (session->allowsUTP())
|
||||
if (session->allowsUTP() && session->utp_context)
|
||||
{
|
||||
if (!tr_utpPacket(std::data(buf), rc, (struct sockaddr*)&from, fromlen, session))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue