summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/jsondb-client/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/jsondb-client/client.cpp b/tools/jsondb-client/client.cpp
index 0f37c61b..1e5e55d5 100644
--- a/tools/jsondb-client/client.cpp
+++ b/tools/jsondb-client/client.cpp
@@ -168,7 +168,6 @@ void InputThread::run()
history(hist, &ev, H_LOAD, historyFile.toLocal8Bit().constData());
el_set(el, EL_HIST, history, hist);
el_set(el, EL_BIND, "\t", "tab-key", NULL);
-
while (true) {
line = el_gets(el, &count);
@@ -494,6 +493,8 @@ bool Client::processCommand(const QString &command)
connect(request, SIGNAL(finished()), this, SLOT(popRequest()));
}
connect(request, SIGNAL(error(QtJsonDb::QJsonDbRequest::ErrorCode,QString)),
+ this, SLOT(popRequest()));
+ connect(request, SIGNAL(error(QtJsonDb::QJsonDbRequest::ErrorCode,QString)),
this, SLOT(onRequestError(QtJsonDb::QJsonDbRequest::ErrorCode,QString)));
pushRequest(request);
mConnection->send(request);