diff --git a/src/handler/httpsession.cpp b/src/handler/httpsession.cpp index 3d116df1..6325a28a 100644 --- a/src/handler/httpsession.cpp +++ b/src/handler/httpsession.cpp @@ -861,6 +861,11 @@ class HttpSession::Private : public QObject void sendQueueDone() { + // response mode may have switched the state (to Closing). in that + // case we want to leave the state alone and do nothing else + if(state != SendingQueue) + return; + state = Holding; if(instruct.holdMode == Instruct::StreamHold)