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:
miniduikbootandjs6pak committed 2024-12-22 17:02:56 +01:00
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;
}
}
}
}