Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbin44 committed Jul 16, 2021
1 parent 0e0761f commit 81579b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CustomShell/MainController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public partial class MainController : Form
{
string currentDir = @"C:/";
List<string> history = new List<string>();
List<string> queue = new List<string>();
WandEditor wand;
Processes proc;
Compression comp;
Expand Down Expand Up @@ -889,6 +888,9 @@ private void MainController_FormClosing(object sender, FormClosingEventArgs e)
{
if (ftpController != null)
ftpController = null;

if (sshClient.client.IsConnected)
sshClient.TerminateConnection();
}
}
}
2 changes: 1 addition & 1 deletion CustomShell/SSHClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace CustomShell
{
class SSHClient
{
SshClient client;
public SshClient client;
public SSHClient()
{

Expand Down

0 comments on commit 81579b2

Please sign in to comment.