ecs-732; Fixed reconnect on initial connection; changed debug levels to 1

This commit is contained in:
Heath Volmer
2018-06-05 10:25:27 -06:00
parent 88a35b0e40
commit e829ba74d5
5 changed files with 7 additions and 7 deletions

View File

@@ -217,7 +217,7 @@ namespace PepperDash.Core
//{
if (Client != null)
{
Debug.Console(2, this, "Cleaning up disconnected client");
Debug.Console(1, this, "Cleaning up disconnected client");
Client.ErrorOccurred -= Client_ErrorOccurred;
KillStream();
@@ -229,7 +229,7 @@ namespace PepperDash.Core
//TheStream = null;
}
Debug.Console(2, this, "Creating new SshClient");
Debug.Console(1, this, "Creating new SshClient");
ConnectionInfo connectionInfo = new ConnectionInfo(Hostname, Port, Username, pauth, kauth);
Client = new SshClient(connectionInfo);
Client.ErrorOccurred += Client_ErrorOccurred;