fixed: removed outdated code

This commit is contained in:
2022-06-25 23:00:00 +04:00
parent 4f587fa59c
commit e674600308
4 changed files with 6 additions and 5 deletions
@@ -33,7 +33,10 @@ public class AuthorizationManager : IAuthorizationManager
{
dispatcher.Dispatch(() => Accepted(peerId, playerId, playerName));
},
(errorCode) => { dispatcher.Dispatch(() => Rejected(peerId, errorCode)); });
(errorCode) =>
{
dispatcher.Dispatch(() => Rejected(peerId, errorCode));
});
}
public void Accepted(uint peerId, string playerId, string playerName)
-2
View File
@@ -85,8 +85,6 @@ namespace Ragon.Core
_logger.Trace($"Rooms: {_roomManager.Rooms.Count} Clients: {_roomManager.RoomsBySocket.Count}");
_statisticsTimer.Restart();
}
Thread.Sleep(15);
}
}
+1 -1
View File
@@ -76,7 +76,7 @@ namespace Ragon.Core
{
if (_host.CheckEvents(out _netEvent) <= 0)
{
if (_host.Service(0, out _netEvent) <= 0)
if (_host.Service(15, out _netEvent) <= 0)
break;
polled = true;