Fix possible infinite loop
Possibility of an exploiter killing an enemy and disconnecting within the `wait` window to trigger an infinite loop.
This commit is contained in:
parent
d7c24dc98f
commit
f3adb75d55
@ -143,6 +143,8 @@ waitForFrameThread()
|
||||
|
||||
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
currentIndex = self.currentAnglePosition;
|
||||
wait( 0.05 * afterFrameCount );
|
||||
|
||||
@ -260,4 +262,4 @@ Callback_PlayerDisconnect()
|
||||
{
|
||||
level notify( "disconnected", self );
|
||||
self [[maps\mp\gametypes\_globallogic_player::callback_playerdisconnect]]();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user