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
+1 -1
View File
@@ -196,7 +196,7 @@ namespace Stress
{ {
var thread = new SimulationThread(); var thread = new SimulationThread();
thread.Start("127.0.0.1", 4444, 50); thread.Start("127.0.0.1", 4444, 50);
Thread.Sleep(1000); Thread.Sleep(300);
} }
Console.ReadKey(); Console.ReadKey();
@@ -33,7 +33,10 @@ public class AuthorizationManager : IAuthorizationManager
{ {
dispatcher.Dispatch(() => Accepted(peerId, playerId, playerName)); 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) 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}"); _logger.Trace($"Rooms: {_roomManager.Rooms.Count} Clients: {_roomManager.RoomsBySocket.Count}");
_statisticsTimer.Restart(); _statisticsTimer.Restart();
} }
Thread.Sleep(15);
} }
} }
+1 -1
View File
@@ -76,7 +76,7 @@ namespace Ragon.Core
{ {
if (_host.CheckEvents(out _netEvent) <= 0) if (_host.CheckEvents(out _netEvent) <= 0)
{ {
if (_host.Service(0, out _netEvent) <= 0) if (_host.Service(15, out _netEvent) <= 0)
break; break;
polled = true; polled = true;