mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[Tests] Fix json_api AlreadyCancelled watchdog error
This commit is contained in:
parent
3769d99532
commit
d5294d5733
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def set_tmp_config_dir():
|
||||||
def add_watchdog(deferred, timeout=0.05, message=None):
|
def add_watchdog(deferred, timeout=0.05, message=None):
|
||||||
|
|
||||||
def callback(value):
|
def callback(value):
|
||||||
if not watchdog.called:
|
if not watchdog.called and not watchdog.cancelled:
|
||||||
watchdog.cancel()
|
watchdog.cancel()
|
||||||
if not deferred.called:
|
if not deferred.called:
|
||||||
if message:
|
if message:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue