Skip to content

Commit 81579b2

Browse files
committed
Minor bugfix
1 parent 0e0761f commit 81579b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CustomShell/MainController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public partial class MainController : Form
1515
{
1616
string currentDir = @"C:/";
1717
List<string> history = new List<string>();
18-
List<string> queue = new List<string>();
1918
WandEditor wand;
2019
Processes proc;
2120
Compression comp;
@@ -889,6 +888,9 @@ private void MainController_FormClosing(object sender, FormClosingEventArgs e)
889888
{
890889
if (ftpController != null)
891890
ftpController = null;
891+
892+
if (sshClient.client.IsConnected)
893+
sshClient.TerminateConnection();
892894
}
893895
}
894896
}

CustomShell/SSHClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CustomShell
1010
{
1111
class SSHClient
1212
{
13-
SshClient client;
13+
public SshClient client;
1414
public SSHClient()
1515
{
1616

0 commit comments

Comments
 (0)