diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/jsondb-client/client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/jsondb-client/client.cpp b/tools/jsondb-client/client.cpp index 1e5e55d5..dcdf9398 100644 --- a/tools/jsondb-client/client.cpp +++ b/tools/jsondb-client/client.cpp @@ -218,8 +218,8 @@ Client::Client( QObject *parent ) : Client::~Client() { - if (mInputThread) { - mInputThread->terminate(); + if (mInputThread && mInputThread->isRunning()) { + mInputThread->quit(); mInputThread->wait(1000); delete mInputThread; mInputThread = 0; |