Commit 5d0cf099 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Don't attempt server shutdown if gui ended normally

parent 26d915bc
......@@ -513,6 +513,8 @@ class AgkyraCLI(cmd.Cmd):
sys.stderr.write('GUI interrupted by user, exiting\n')
sys.stderr.flush()
new_gui.clean_exit()
if self.client:
self._shutdown('')
except socket.error as e:
if e.errno == errno.ECONNREFUSED:
sys.stderr.write(
......@@ -523,10 +525,6 @@ class AgkyraCLI(cmd.Cmd):
exit(1)
else:
raise
LOGGER.info('GUI is shutdown')
if self.client:
self._shutdown('')
else:
sys.stderr.write('Session failed to load\n')
sys.stderr.flush()
......@@ -93,6 +93,7 @@ class GUI(WebSocketBaseClient):
LOG.debug('Closed GUI connection')
except Exception as e:
LOG.warning('While cleaning GUI: %s' % e)
LOG.info('GUI is shutdown')
def handshake_ok(self):
"""If handshake OK is, SessionHelper UP goes, so GUI launched can be"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment