summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2021-01-06 03:16:00 +0100
committerUwe Klotz <uklotz@mixxx.org>2021-01-06 03:17:32 +0100
commit3bdeba8239c104ad4a94f84b10bca350020cae15 (patch)
tree3284f55b3c2cd40461cfbd95763c837ec586f3b8 /src
parent2495bd8456942975383c678dbcbab7e8e5503e35 (diff)
WebTask: Trigger regular abort handling after client-side timeout
Diffstat (limited to 'src')
-rw-r--r--src/network/webtask.cpp6
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() {