mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
Fix
This commit is contained in:
@ -149,19 +149,16 @@ public class DistributedServer : NetworkServer<DistributedConnection>, IResource
|
||||
// base.AddConnection(connection);
|
||||
//}
|
||||
|
||||
bool one = false;
|
||||
|
||||
protected override void ClientConnected(DistributedConnection connection)
|
||||
{
|
||||
// if (!one)
|
||||
//connection.OnReady += ConnectionReadyEventReceiver;
|
||||
Task.Delay(10000).ContinueWith((x) =>
|
||||
{
|
||||
Console.WriteLine("By bye");
|
||||
// Remove me from here
|
||||
connection.Close();
|
||||
one = true;
|
||||
});
|
||||
//Task.Delay(10000).ContinueWith((x) =>
|
||||
//{
|
||||
// Console.WriteLine("By bye");
|
||||
// // Remove me from here
|
||||
// connection.Close();
|
||||
// one = true;
|
||||
//});
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user