rendered paste bodydiff --git a/kio/kio/connection.cpp b/kio/kio/connection.cppindex b7c3b2e..4a16924 100644--- a/kio/kio/connection.cpp+++ b/kio/kio/connection.cpp@@ -84,7 +84,7 @@ void ConnectionPrivate::dequeue() void ConnectionPrivate::commandReceived(const Task &task) {- //kDebug() << "Command " << task.cmd << " added to the queue";+ kDebug() << this << "Command " << task.cmd << " added to the queue"; incomingTasks.enqueue(task); QMetaObject::invokeMethod(q, "readyRead", Qt::QueuedConnection); }@@ -507,11 +507,13 @@ bool Connection::waitForIncomingTask(int ms) int Connection::read( int* _cmd, QByteArray &data ) { // if it's still empty, then it's an error- if (d->incomingTasks.isEmpty())+ if (d->incomingTasks.isEmpty()) {+ kWarning() << this << "Task list is empty!"; return -1;+ } const Task task = d->incomingTasks.dequeue();- //kDebug() << this << "Command " << task.cmd << " removed from the queue (size "- // << task.data.size() << ")" << endl;+ kDebug() << this << "Command " << task.cmd << " removed from the queue (size "+ << task.data.size() << ")" << endl; *_cmd = task.cmd; data = task.data; return data.size();