mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 16:17:20 +00:00
Improve speed of process termination on exit
This commit is contained in:
1 parent
052194714a
commit
9a6f5ba1a8
2 files changed
+7
-2
No files matched your search
@@ -447,6 +447,7 @@ NvHTTP::openConnection(QUrl baseUrl,
|
||||
// Run the request with a timeout if requested
|
||||
QEventLoop loop;
|
||||
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()), &loop, SLOT(quit()));
|
||||
if (timeoutMs) {
|
||||
QTimer::singleShot(timeoutMs, &loop, SLOT(quit()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user