events: improve handling qubesd restart
qubesd may be restarted during different stages of connection - either while attempting to connect, or while already listening on events. Adjust exception list accordingly. This is especially important for qvm-start-gui - otherwise it crashes on qubesd restart.
This commit is contained in:
parent
c07c57bfef
commit
ba2057a2c6
@ -118,7 +118,8 @@ class EventsDispatcher(object):
|
||||
while True:
|
||||
try:
|
||||
yield from self._listen_for_events(vm)
|
||||
except ConnectionRefusedError:
|
||||
except (ConnectionRefusedError, ConnectionResetError,
|
||||
FileNotFoundError):
|
||||
pass
|
||||
if not reconnect:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user