mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix deluge-gtk not working with twisted 12 (fixes #2148)
This commit is contained in:
parent
129c09c5a7
commit
183c47f810
1 changed files with 5 additions and 1 deletions
|
@ -405,7 +405,11 @@ Please see the details below for more information."), details=traceback.format_e
|
||||||
|
|
||||||
if self.config["show_connection_manager_on_start"]:
|
if self.config["show_connection_manager_on_start"]:
|
||||||
# XXX: We need to call a simulate() here, but this could be a bug in twisted
|
# XXX: We need to call a simulate() here, but this could be a bug in twisted
|
||||||
reactor.simulate()
|
try:
|
||||||
|
reactor._simulate()
|
||||||
|
except AttributeError:
|
||||||
|
# twisted < 12
|
||||||
|
reactor.simulate()
|
||||||
self.connectionmanager.show()
|
self.connectionmanager.show()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue