Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Fix double destructing of failed request while connecting to core
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Apr 19, 2024
1 parent ebac484 commit c7141e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tribler/gui/event_request_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import contextlib
import json
import logging
import time
Expand Down Expand Up @@ -196,7 +197,8 @@ def _connect_to_core(self, reschedule_on_err):
self.set_api_port(config_manager.get("api/http_port"))

if self.reply is not None:
self.reply.deleteLater()
with contextlib.suppress(RuntimeError):
self.reply.deleteLater()

# A workaround for Qt5 bug. See https://github.com/Tribler/tribler/issues/7018
self.setNetworkAccessible(QNetworkAccessManager.Accessible)
Expand Down

0 comments on commit c7141e8

Please sign in to comment.