fix: client polling issues
This commit is contained in:
@@ -92,8 +92,9 @@ public class LiteNetLibClient : LiteNetLibCommunicatorBase, INetworkCommunicator
|
|||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
Manager.PollEvents();
|
|
||||||
Thread.Sleep(1);
|
Thread.Sleep(1);
|
||||||
|
try { Manager.PollEvents(); }
|
||||||
|
catch (Exception e) { logger?.LogException(this, e, force: true); }
|
||||||
}
|
}
|
||||||
}, cancellationToken);
|
}, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user