##// END OF EJS Templates
See last commit
perrinel -
r700:bef126514bff
parent child
Show More
@@ -54,7 +54,7 void NetworkController::onProcessRequested(std::shared_ptr<QNetworkRequest> requ
54 54 if (it != impl->m_NetworkReplyToId.cend()) {
55 55 impl->lockWrite();
56 56 qCDebug(LOG_NetworkController()) << tr("Remove for reply: ")
57 << impl->m_NetworkReplyToId[reply];
57 << impl->m_NetworkReplyToId[reply];
58 58 impl->m_NetworkReplyToId.erase(reply);
59 59 impl->unlock();
60 60 // Deletes reply
@@ -72,8 +72,8 void NetworkController::onProcessRequested(std::shared_ptr<QNetworkRequest> requ
72 72 if (totalBytes > 0) {
73 73 double progress = (bytesRead * 100.0) / totalBytes;
74 74 qCDebug(LOG_NetworkController()) << tr("NetworkController onReplyProgress") << progress
75 << QThread::currentThread() << request.get() << reply
76 << bytesRead << totalBytes;
75 << QThread::currentThread() << request.get() << reply
76 << bytesRead << totalBytes;
77 77 impl->lockRead();
78 78 auto it = impl->m_NetworkReplyToId.find(reply);
79 79 impl->unlock();
@@ -100,7 +100,6 void NetworkController::initialize()
100 100
101 101
102 102 auto onReplyErrors = [this](QNetworkReply *reply, const QList<QSslError> &errors) {
103
104 103 qCCritical(LOG_NetworkController()) << tr("NetworkAcessManager errors: ") << errors;
105 104
106 105 };
@@ -120,7 +119,7 void NetworkController::onReplyCanceled(QUuid identifier)
120 119 {
121 120 auto findReply = [identifier](const auto &entry) { return identifier == entry.second; };
122 121 qCDebug(LOG_NetworkController()) << tr("NetworkController onReplyCanceled")
123 << QThread::currentThread() << identifier;
122 << QThread::currentThread() << identifier;
124 123
125 124
126 125 impl->lockRead();
@@ -129,11 +128,11 void NetworkController::onReplyCanceled(QUuid identifier)
129 128 impl->unlock();
130 129 if (it != end) {
131 130 qCDebug(LOG_NetworkController()) << tr("NetworkController onReplyCanceled ABORT DONE")
132 << QThread::currentThread() << identifier;
131 << QThread::currentThread() << identifier;
133 132 it->first->abort();
134 133 }
135 134 qCDebug(LOG_NetworkController()) << tr("NetworkController onReplyCanceled END")
136 << QThread::currentThread();
135 << QThread::currentThread();
137 136 }
138 137
139 138 void NetworkController::waitForFinish()
General Comments 2
You need to be logged in to leave comments. Login now