Skip to content

Commit 506d469

Browse files
committed
Improve console - added disconnection from host before closing tab
1 parent 312906c commit 506d469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redis-desktop-manager/source/widgets/consoleTab.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ ConsoleTab::ConsoleTab(RedisConnectionConfig& config)
2828
connect(connection, SIGNAL(changePrompt(const QString &, bool)), this, SLOT(setPrompt(const QString &, bool)));
2929
connect(connection, SIGNAL(addOutput(const QString&)), this, SLOT(printCommandExecutionResults(const QString&)));
3030
connect(&connectionThread, SIGNAL(started()), connection, SLOT(init()));
31+
connect(&connectionThread, SIGNAL(finished()), connection, SLOT(disconnect()));
3132

3233
connectionThread.start();
3334
}
3435

3536
ConsoleTab::~ConsoleTab(void)
3637
{
3738
connectionThread.quit();
38-
connectionThread.wait();
39+
connectionThread.wait(30000);
3940
}
4041

4142
void ConsoleTab::setPrompt(const QString & str, bool display)

0 commit comments

Comments
 (0)