refactor: Move failure handling out of catch blocks just in case

This commit is contained in:
Andrew Welker
2021-10-18 12:16:22 -06:00
parent f947bb8939
commit e565144830

View File

@@ -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();
}