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 )
|
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
||||||
{
|
{
|
||||||
|
self endon( "disconnect" );
|
||||||
|
|
||||||
currentIndex = self.currentAnglePosition;
|
currentIndex = self.currentAnglePosition;
|
||||||
wait( 0.05 * afterFrameCount );
|
wait( 0.05 * afterFrameCount );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user