From 5aae0afaddcf7f2e2a2e8a82596cdb7bc2738cbe Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 3 Jun 2020 15:28:24 +0100 Subject: [PATCH] Fixed checking for connection --- UI/DirectorPatch.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/UI/DirectorPatch.cs b/UI/DirectorPatch.cs index 6c425d3..e21602f 100644 --- a/UI/DirectorPatch.cs +++ b/UI/DirectorPatch.cs @@ -108,12 +108,6 @@ bool PatchComposer( LogWindow log ) bool PatchDirector( LogWindow log ) { - if ( MainWindow.ConnectedDirector == null ) - { - log.WriteNormal( $"Skipping director patch because we're not connected" ); - return false; - } - var SshConnectionInfo = new ConnectionInfo( Address.Text.ToString(), Username.Text, new PasswordAuthenticationMethod( Username.Text, Password.Text ) ); SshConnectionInfo.RetryAttempts = 1; SshConnectionInfo.Timeout = TimeSpan.FromSeconds( 2 );