Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2602,6 +2602,9 @@ static bool PollRawUDPSockets( int nMaxTimeoutMS, bool bManualPoll )
// and we assume that it will have locked the lock exactly once.
AssertGlobalLockHeldExactlyOnce();

// Clean up any sockets that were closed and marked pending destruction before polling
ProcessPendingDestroyClosedRawUDPSockets();

// Sanity check all of our sockets are alive
#ifdef DBGFLAG_ASSERT
for ( CRawUDPSocketImpl *pSock: s_vecRawSockets )
Expand Down