diff --git a/resources/lib/websocket.py b/resources/lib/websocket.py index 98b7902e..3d777a97 100644 --- a/resources/lib/websocket.py +++ b/resources/lib/websocket.py @@ -853,6 +853,7 @@ class WebSocketApp(object): if self.sock: raise WebSocketException("socket is already opened") thread = None + self.keep_running = True try: self.sock = WebSocket(self.get_mask_key, sockopt=sockopt, sslopt=sslopt)