|
@@ -1704,7 +1704,6 @@ void __fastcall TSecureShell::Discard()
|
|
|
bool WasActive = FActive;
|
|
|
FActive = false;
|
|
|
FOpened = false;
|
|
|
- FClosed = true;
|
|
|
|
|
|
if (WasActive)
|
|
|
{
|
|
@@ -1716,6 +1715,7 @@ void __fastcall TSecureShell::Close()
|
|
|
{
|
|
|
LogEvent(L"Closing connection.");
|
|
|
DebugAssert(FActive);
|
|
|
+ FClosed = true;
|
|
|
|
|
|
// Without main channel SS_EOF is ignored and would get stuck waiting for exit code.
|
|
|
if ((backend_exitcode(FBackendHandle) < 0) && winscp_query(FBackendHandle, WINSCP_QUERY_MAIN_CHANNEL))
|