protect websocket handling from any exceptions

This commit is contained in:
Jakob Ketterl 2019-10-21 21:51:31 +02:00
parent 6cdec05cde
commit eb29d0ac99
2 changed files with 21 additions and 17 deletions

View file

@ -152,4 +152,4 @@ class WebSocketController(Controller):
def handle_request(self):
conn = WebSocketConnection(self.handler, WebSocketMessageHandler())
# enter read loop
conn.read_loop()
conn.handle()