Fix CLI exit after unexpected stream termination

Fixes #939
This commit is contained in:
Cameron Gutman
2025-12-27 13:33:46 -06:00
parent f0bb1031d8
commit 21fb2832e1
2 changed files with 13 additions and 17 deletions

View File

@@ -1308,14 +1308,14 @@ private:
} catch (const QtNetworkReplyException&) {
}
// Exit the entire program if requested
if (m_Session->m_ShouldExit) {
QCoreApplication::instance()->quit();
}
// Session is finished now
emit m_Session->sessionFinished(m_Session->m_PortTestResults);
}
// Exit the entire program if requested
if (m_Session->m_ShouldExit) {
QCoreApplication::instance()->quit();
}
}
Session* m_Session;