forked from M-Labs/artiq
1
0
Fork 0

sync_struct: catch ConnectionErrors in _receive_cr (#1319)

This commit is contained in:
hartytp 2019-05-10 12:53:51 +01:00 committed by GitHub
parent bbcd1db025
commit c2b4f0cfe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ class Subscriber:
for notify_cb in self.notify_cbs: for notify_cb in self.notify_cbs:
notify_cb(mod) notify_cb(mod)
except ConnectionError:
pass
finally: finally:
if self.disconnect_cb is not None: if self.disconnect_cb is not None:
self.disconnect_cb() self.disconnect_cb()