Skip to content

Commit a85b5d1

Browse files
committed
bugfix - CloseControlMessage with empty reason evaluates to False
1 parent 56c4e8c commit a85b5d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ws4py/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def terminate(self):
323323
self.client_terminated = self.server_terminated = True
324324

325325
try:
326-
if not s.closing:
326+
if s.closing is None:
327327
self.closed(1006, "Going away")
328328
else:
329329
self.closed(s.closing.code, s.closing.reason)

0 commit comments

Comments
 (0)