mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-01-11 19:44:44 +00:00
Resolves both bugfix pdc-6 and pdc-7
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -175,7 +175,7 @@ namespace PepperDash.Core
|
||||
{
|
||||
Debug.Console(1, this, "Program stopping. Closing connection");
|
||||
Disconnect();
|
||||
Client.Dispose();
|
||||
//Client.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -387,13 +387,16 @@ namespace PepperDash.Core
|
||||
myTcpServer.SocketSendOrReceiveTimeOutInMs = (this.HeartbeatRequiredIntervalMs * 5);
|
||||
|
||||
// myTcpServer.HandshakeTimeout = 30;
|
||||
myTcpServer.SocketStatusChange += new TCPServerSocketStatusChangeEventHandler(TcpServer_SocketStatusChange);
|
||||
}
|
||||
else
|
||||
{
|
||||
KillServer();
|
||||
myTcpServer.PortNumber = Port;
|
||||
}
|
||||
|
||||
myTcpServer.SocketStatusChange -= TcpServer_SocketStatusChange;
|
||||
myTcpServer.SocketStatusChange += new TCPServerSocketStatusChangeEventHandler(TcpServer_SocketStatusChange);
|
||||
|
||||
ServerStopped = false;
|
||||
myTcpServer.WaitForConnectionAsync(IPAddress.Any, TcpConnectCallback);
|
||||
OnServerStateChange(myTcpServer.State);
|
||||
|
||||
Reference in New Issue
Block a user