events: try reconnecting to qubesd also on BrokenPipeError
When qubesd exits while writing to it, not reading, the error is BrokenPipe, not EOF. Handle it the same.
This commit is contained in:
parent
0dfdab32e1
commit
e7bc8f21d5
@ -173,6 +173,8 @@ class EventsDispatcher(object):
|
||||
value = (yield from reader.readuntil(b'\0'))[:-1].\
|
||||
decode('utf-8')
|
||||
kwargs[key] = value
|
||||
except BrokenPipeError:
|
||||
break
|
||||
except asyncio.IncompleteReadError as err:
|
||||
if err.partial == b'':
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user