mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
Check for disconnection between handling messages
Without this, it is possible for clients to get the remainder of their messages handled in a packet. Co-Authored-By: js6pak <me@6pak.dev>
This commit is contained in:
1 parent
a7c37b6bcf
commit
58a8bda8e7
1 file changed
+5
@@ -69,6 +69,11 @@ namespace Impostor.Server.Net.Hazel
|
||||
{
|
||||
await Client.HandleMessageAsync(message, e.Type);
|
||||
}
|
||||
|
||||
if (!IsConnected)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user