Commit 627e504a authored by Taddeüs Kroes's avatar Taddeüs Kroes

Added missing CLOSE code and reason params

parent 92410324
...@@ -104,7 +104,7 @@ class Connection(object): ...@@ -104,7 +104,7 @@ class Connection(object):
try: try:
self.onmessage(self.receive()) self.onmessage(self.receive())
except SocketClosed as e: except SocketClosed as e:
self.close() self.close(e.code, e.reason)
break break
except Exception as e: except Exception as e:
self.onerror(e) self.onerror(e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment