diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/webtask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/webtask.cpp b/src/network/webtask.cpp index 6b5f878baf..2dc9ca1ce2 100644 --- a/src/network/webtask.cpp +++ b/src/network/webtask.cpp @@ -211,8 +211,10 @@ void WebTask::timerEvent(QTimerEvent* event) { kLogger.info() << this << "Aborting after timed out"; - DEBUG_ASSERT(pPendingNetworkReply->isRunning()); - pPendingNetworkReply->abort(); + // Triggering the regular abort workflow guarantees that + // the internal state is switch into the intermediate state + // State::Aborting when the request is still running! + slotAbort(); } void WebTask::slotNetworkReplyFinished() { |