fix: client polling issues

This commit is contained in:
2025-11-24 22:13:09 +03:00
parent 55a6fca1fd
commit 7c8b7debca

View File

@@ -92,8 +92,9 @@ public class LiteNetLibClient : LiteNetLibCommunicatorBase, INetworkCommunicator
{
while (true)
{
Manager.PollEvents();
Thread.Sleep(1);
try { Manager.PollEvents(); }
catch (Exception e) { logger?.LogException(this, e, force: true); }
}
}, cancellationToken);
}