Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventManager's timeout should ignore the upgrade duration #7006

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/tribler/gui/core_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down