From e565144830312320c18119a9a486b953965070ca Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Mon, 18 Oct 2021 12:16:22 -0600 Subject: [PATCH] refactor: Move failure handling out of catch blocks just in case --- Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs b/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs index 8be7768..6d9a2e5 100644 --- a/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs +++ b/Pepperdash Core/Pepperdash Core/Comm/GenericSshClient.cs @@ -277,7 +277,10 @@ namespace PepperDash.Core Debug.Console(1, this, Debug.ErrorLogLevel.Error, "Unhandled exception on connect:\r({0})", e); ClientStatus = SocketStatus.SOCKET_STATUS_CONNECT_FAILED; HandleConnectionFailure(); - } + } + + ClientStatus = SocketStatus.SOCKET_STATUS_CONNECT_FAILED; + HandleConnectionFailure(); }