update custom callbacks to properly exit thread on disconnect
This commit is contained in:
parent
5d12ff471b
commit
4cce336fb9
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user