testing dynamic tcp server and secure tcp client, still need to finish testing and comment

This commit is contained in:
Joshua Gutenplan
2017-03-16 18:48:15 -07:00
parent ab2d0a1197
commit e28d1eaf5c
13 changed files with 110 additions and 114 deletions

View File

@@ -313,7 +313,7 @@ namespace PepperDash.Core
void Client_SocketStatusChange(TCPClient client, SocketStatus clientSocketStatus)
{
Debug.Console(2, this, "Socket status change {0} ({1})", clientSocketStatus, ClientStatusText);
if (client.ClientStatus != SocketStatus.SOCKET_STATUS_CONNECTED && !DisconnectCalledByUser)
if (client.ClientStatus != SocketStatus.SOCKET_STATUS_CONNECTED && !DisconnectCalledByUser && AutoReconnect)
WaitAndTryReconnect();
// Probably doesn't need to be a switch since all other cases were eliminated