Fix deluge-gtk not working with twisted 12 (fixes #2148)

This commit is contained in:
John Garland 2012-09-16 18:36:58 +10:00
parent 18eb885983
commit 17cac01673
1 changed files with 5 additions and 1 deletions

View File

@ -373,7 +373,11 @@ Please see the details below for more information."), details=traceback.format_e
if self.config["show_connection_manager_on_start"]:
# 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()