We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486cbf8 commit 3432e11Copy full SHA for 3432e11
homu/main.py
@@ -22,6 +22,7 @@
22
from .git_helper import SSH_KEY_FILE
23
import shlex
24
import random
25
+import weakref
26
27
STATUS_TO_PRIORITY = {
28
'success': 0,
@@ -343,7 +344,13 @@ def blocked_by_closed_tree(self):
343
344
def start_testing(self, timeout):
345
self.test_started = time.time() # FIXME: Save in the local database
346
self.set_status('pending')
- timer = Timer(timeout, self.timed_out)
347
+
348
+ wm = weakref.WeakMethod(self.timed_out)
349
+ def timed_out():
350
+ m = wm()
351
+ if m:
352
+ m()
353
+ timer = Timer(timeout, timed_out)
354
timer.start()
355
self.timeout_timer = timer
356
0 commit comments