Skip to content

Commit edb5da7

Browse files
committed
Add APP().isExiting() condition when fetching job for multi-testing
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
1 parent f9a6b2b commit edb5da7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Furious/Widget/UserServersQTableWidget.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,9 @@ def handleTestDownloadSpeedJobXXX(
16841684

16851685
self.testDownloadSpeedMultiPort += 1
16861686

1687-
jobTimer.start(1)
1687+
if not APP().isExiting():
1688+
# Fetch next job.
1689+
jobTimer.start(1)
16881690
else:
16891691
testDownloadSpeedPort = 20809
16901692

@@ -1695,8 +1697,9 @@ def handleTestDownloadSpeedJobXXX(
16951697
if isMulti:
16961698
self.testDownloadSpeedMultiSema.release(1)
16971699

1698-
# Fetch next job.
1699-
jobTimer.start(1)
1700+
if not APP().isExiting():
1701+
# Fetch next job.
1702+
jobTimer.start(1)
17001703
else:
17011704
self.testDownloadSpeedByFactory(
17021705
index,

0 commit comments

Comments
 (0)