mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #1938 : AttributeError when attempting to shutdown daemon from client
This commit is contained in:
parent
b530658e20
commit
d3c3d64cd4
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue