mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Fix CConnectionTransportP2PICE deleting itself from within its thinker.
That's exactly what ScheduledMethodThinkerLockable says we cannot do! P4:6605430
This commit is contained in:
@@ -266,8 +266,12 @@ void CConnectionTransportP2PICE::P2PTransportThink( SteamNetworkingMicroseconds
|
||||
// Are we dead?
|
||||
if ( !m_pICESession || Connection().m_pTransportICEPendingDelete )
|
||||
{
|
||||
Connection().CheckCleanupICE();
|
||||
// We could be deleted here!
|
||||
// If we're a zombie, we should be queued for destruction
|
||||
Assert( Connection().m_pTransportICE != this );
|
||||
Assert( Connection().m_pTransportICEPendingDelete == this );
|
||||
|
||||
// Make sure connection wakes up to do this
|
||||
Connection().SetNextThinkTimeASAP();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user