Fix CConnectionTransportP2PICE deleting itself from within its thinker.

That's exactly what ScheduledMethodThinkerLockable says we cannot do!

P4:6605430
This commit is contained in:
Fletcher Dunn
2021-06-16 11:52:28 -07:00
parent e75633daa9
commit af984fd7b8
@@ -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;
}