Add APP().isExiting() condition when fetching job for multi-testing

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2025-06-21 22:43:34 +08:00
parent f9a6b2b2ef
commit edb5da7038
+6 -3
View File
@@ -1684,7 +1684,9 @@ class UserServersQTableWidget(QTranslatable, AppQTableWidget):
self.testDownloadSpeedMultiPort += 1
jobTimer.start(1)
if not APP().isExiting():
# Fetch next job.
jobTimer.start(1)
else:
testDownloadSpeedPort = 20809
@@ -1695,8 +1697,9 @@ class UserServersQTableWidget(QTranslatable, AppQTableWidget):
if isMulti:
self.testDownloadSpeedMultiSema.release(1)
# Fetch next job.
jobTimer.start(1)
if not APP().isExiting():
# Fetch next job.
jobTimer.start(1)
else:
self.testDownloadSpeedByFactory(
index,