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):
try:
self.onmessage(self.receive())
except SocketClosed as e:
self.close()
self.close(e.code, e.reason)
break
except Exception as 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