fixed: removed outdated code
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -85,8 +85,6 @@ namespace Ragon.Core
|
||||
_logger.Trace($"Rooms: {_roomManager.Rooms.Count} Clients: {_roomManager.RoomsBySocket.Count}");
|
||||
_statisticsTimer.Restart();
|
||||
}
|
||||
|
||||
Thread.Sleep(15);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user