update custom callbacks to properly exit thread on disconnect

This commit is contained in:
RaidMax 2021-12-19 20:01:35 -06:00
parent 5d12ff471b
commit 4cce336fb9

View File

@ -144,6 +144,7 @@ waitForFrameThread()
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount ) waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
{ {
self endon( "disconnect" );
currentIndex = self.currentAnglePosition; currentIndex = self.currentAnglePosition;
wait( 0.05 * afterFrameCount ); wait( 0.05 * afterFrameCount );
@ -253,4 +254,4 @@ Callback_PlayerDisconnect()
{ {
level notify( "disconnected", self ); level notify( "disconnected", self );
self maps\mp\gametypes\_playerlogic::Callback_PlayerDisconnect(); self maps\mp\gametypes\_playerlogic::Callback_PlayerDisconnect();
} }