fixed: removed outdated code
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user