diff --git a/CustomShell/MainController.cs b/CustomShell/MainController.cs index de60d32..1a89913 100644 --- a/CustomShell/MainController.cs +++ b/CustomShell/MainController.cs @@ -15,7 +15,6 @@ public partial class MainController : Form { string currentDir = @"C:/"; List history = new List(); - List queue = new List(); WandEditor wand; Processes proc; Compression comp; @@ -889,6 +888,9 @@ private void MainController_FormClosing(object sender, FormClosingEventArgs e) { if (ftpController != null) ftpController = null; + + if (sshClient.client.IsConnected) + sshClient.TerminateConnection(); } } } diff --git a/CustomShell/SSHClient.cs b/CustomShell/SSHClient.cs index 7b9c4b3..dfc73a8 100644 --- a/CustomShell/SSHClient.cs +++ b/CustomShell/SSHClient.cs @@ -10,7 +10,7 @@ namespace CustomShell { class SSHClient { - SshClient client; + public SshClient client; public SSHClient() {