logger.error("Wanted to do a blocking call but external nsmd found not running anymore. It probably closed or crashed. Will close our GUI now. There is no risk of data loss because we were just an attached GUI anyway.")
sysexit()#return None switch to return None to let it crash and see the python traceback
ifstate:
self.sock.setblocking(True)#explicitly wait.
self.sock.settimeout(0.5)
@ -527,8 +546,10 @@ class NsmServerControl(object):
ifmsg:
self._queue.append(msg)
exceptBlockingIOError:#happens while no data is received. Has nothing to do with blocking or not.
#If we lose connection to nsmd (because it was killed remotely) this will stop as well.
break
exceptsocket.timeout:
#Try again next time.
break
formsginself._queue:
@ -604,7 +625,6 @@ class NsmServerControl(object):