mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +00:00
Resolves both bugfix pdc-6 and pdc-7
This commit is contained in:
parent
ada6090b43
commit
4aded28792
4 changed files with 5 additions and 2 deletions
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue