mirror of
https://github.com/logos-storage/deluge.git
synced 2026-05-16 14:29:38 +00:00
Fix #1938 : AttributeError when attempting to shutdown daemon from client
This commit is contained in:
parent
b530658e20
commit
d3c3d64cd4
@ -158,7 +158,10 @@ class MainWindow(component.Component):
|
|||||||
:type shutdown: boolean
|
:type shutdown: boolean
|
||||||
"""
|
"""
|
||||||
if shutdown:
|
if shutdown:
|
||||||
client.daemon.shutdown()
|
try:
|
||||||
|
client.daemon.shutdown()
|
||||||
|
except AttributeError, e:
|
||||||
|
log.error("Encountered error attempting to shutdown daemon: %s", e)
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
|
|
||||||
def load_window_state(self):
|
def load_window_state(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user