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
|
||||
"""
|
||||
if shutdown:
|
||||
client.daemon.shutdown()
|
||||
try:
|
||||
client.daemon.shutdown()
|
||||
except AttributeError, e:
|
||||
log.error("Encountered error attempting to shutdown daemon: %s", e)
|
||||
reactor.stop()
|
||||
|
||||
def load_window_state(self):
|
||||
|
|
Loading…
Reference in New Issue