Improve Python code readability

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-09-08 10:53:31 +08:00
parent 7601d5ae96
commit 680ebfc16b
8 changed files with 18 additions and 3 deletions
+3
View File
@@ -583,6 +583,7 @@ class _LatencyScheduler(QtCore.QObject):
self.discardTcpingJobs(
lambda job: job.target.subscriptionSource in subscriptionIds
)
self.scheduleDrain()
def discardTcpingJobs(self, predicate):
@@ -1391,6 +1392,7 @@ class ProfileTestManager(QtCore.QObject):
def reconcileProfiles(self):
"""Refresh current identity once and proactively invalidate stale work."""
self._targets = _currentTargets(self._profilesProvider())
self._latencyScheduler.reconcileProfiles()
self._serialDownloadScheduler.reconcileProfiles()
self._concurrentDownloadScheduler.reconcileProfiles()
@@ -1419,6 +1421,7 @@ class ProfileTestManager(QtCore.QObject):
return
self._shuttingDown = True
self._latencyScheduler.shutdown()
self._serialDownloadScheduler.cancelAll()
self._concurrentDownloadScheduler.cancelAll()