summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-12-31 14:06:07 +0100
committerUwe Klotz <uklotz@mixxx.org>2020-12-31 14:10:58 +0100
commitd655946faa44d84536f12718e1947c5f9737211a (patch)
tree7f85d5d93683068d6874bb51f03842349898d256 /src/network
parent30e888300569add658eb53b7791ebd72d308b5d2 (diff)
WebTask: Simplify the consistency check
Diffstat (limited to 'src/network')
-rw-r--r--src/network/webtask.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/network/webtask.cpp b/src/network/webtask.cpp
index d626f64d17..72f3b06c87 100644
--- a/src/network/webtask.cpp
+++ b/src/network/webtask.cpp
@@ -309,20 +309,13 @@ void WebTask::slotNetworkReplyFinished() {
// Check correlation between pending and finished reply
auto* const pPendingNetworkReply = m_pendingNetworkReplyWeakPtr.data();
- if (!pPendingNetworkReply) {
- // No reply is pending
- DEBUG_ASSERT(m_state == State::Aborted || m_state == State::TimedOut);
- DEBUG_ASSERT(m_timeoutTimerId == kInvalidTimerId);
- kLogger.debug()
- << this
- << "Discarding obsolete network reply";
- return;
- }
VERIFY_OR_DEBUG_ASSERT(pPendingNetworkReply == pFinishedNetworkReply) {
- // Another reply is pending
- kLogger.debug()
+ // Another or no reply is pending
+ kLogger.warning()
<< this
- << "Discarding unexpected network reply";
+ << "Discarding unexpected network reply:"
+ << "finished =" << pFinishedNetworkReply
+ << "pending =" << pPendingNetworkReply;
return;
}