From dfe9fd2395738181f5e9246f68c44d704c759ca6 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 4 Mar 2017 12:40:52 +0100 Subject: [PATCH] RC: internal errors during ws_open should halt boss --- src/wormhole/_rendezvous.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/wormhole/_rendezvous.py b/src/wormhole/_rendezvous.py index 1074931..1789333 100644 --- a/src/wormhole/_rendezvous.py +++ b/src/wormhole/_rendezvous.py @@ -139,11 +139,16 @@ class RendezvousConnector(object): def ws_open(self, proto): self._debug("R.connected") self._ws = proto - self._tx("bind", appid=self._appid, side=self._side) - self._C.connected() - self._N.connected() - self._M.connected() - self._L.connected() + try: + self._tx("bind", appid=self._appid, side=self._side) + self._C.connected() + self._N.connected() + self._M.connected() + self._L.connected() + except Exception as e: + self._B.error(e) + raise + self._debug("R.connected finished notifications") def ws_message(self, payload): msg = bytes_to_dict(payload)