mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-10-21 02:58:45 +00:00
Manual update check
This commit is contained in:
1 parent
03be9baad1
commit
c52714f264
4 files changed
+78
-48
No files matched your search
@@ -32,7 +32,7 @@ class BackgroundTask:
|
||||
try:
|
||||
results.put((True, work()))
|
||||
except Exception:
|
||||
log.exception("Connectivity test failed")
|
||||
log.exception("Background task failed")
|
||||
results.put((False, None))
|
||||
|
||||
def poll():
|
||||
@@ -52,5 +52,5 @@ class BackgroundTask:
|
||||
if not self.closed:
|
||||
finish()
|
||||
|
||||
threading.Thread(target=run, daemon=True, name="connectivity-test").start()
|
||||
threading.Thread(target=run, daemon=True, name="ui-background-task").start()
|
||||
self.pending = self.owner.after(50, poll)
|
||||
Reference in new issue
Block a user