Skip to content

Commit

Permalink
Bug 1749: Failure after a session lost while in Console dialog is rec…
Browse files Browse the repository at this point in the history
…onnected

https://winscp.net/tracker/1749
(cherry picked from commit af4bdf1)

Source commit: 36b034e75c855addad2449cd09f83d8f15f50e38
  • Loading branch information
martinprikryl committed May 28, 2019
1 parent 152555a commit a29c03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/forms/Console.cpp
Expand Up @@ -178,8 +178,9 @@ bool __fastcall TConsoleDialog::Execute(const UnicodeString Command,
//---------------------------------------------------------------------------
void __fastcall TConsoleDialog::TerminalClose(TObject * Sender)
{
// Not deassociating terminal here, leaving it to the destructor.
// Because at this point, we could be in the midddle of a reconnect and the event handlers can be set to TTerminalThread.
Close();
Terminal = NULL;
if (FPrevTerminalClose)
{
FPrevTerminalClose(Sender);
Expand Down

0 comments on commit a29c03f

Please sign in to comment.