From c909544ee60205656b6e0cbaa9a4840825b81bc5 Mon Sep 17 00:00:00 2001 From: Alexander Kozlovsky Date: Wed, 17 Aug 2022 09:52:52 +0200 Subject: [PATCH] EventManager's timeout should ignore the upgrade duration --- src/tribler/gui/core_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tribler/gui/core_manager.py b/src/tribler/gui/core_manager.py index 2d861e0764f..ec5ea732618 100644 --- a/src/tribler/gui/core_manager.py +++ b/src/tribler/gui/core_manager.py @@ -68,7 +68,7 @@ def start(self, core_args=None, core_env=None, upgrade_manager=None, run_core=Tr If so, use that one and don't start a new, fresh Core. """ # Connect to the events manager - self.events_manager.connect() + self.events_manager.connect(reschedule_on_err=False) # do not retry if tribler Core is not running yet if run_core: self.core_args = core_args @@ -116,6 +116,7 @@ def start_tribler_core(self): def on_core_started(self): self.core_started = True self.core_running = True + self.events_manager.connect(reschedule_on_err=True) # retry until REST API is ready def on_core_stdout_read_ready(self): if self.app_manager.quitting_app: