Fix #1938 : AttributeError when attempting to shutdown daemon from client

This commit is contained in:
Calum Lind 2011-12-01 23:43:27 +00:00
parent b530658e20
commit d3c3d64cd4
1 changed files with 4 additions and 1 deletions

View File

@ -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):