We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb048db commit 56c4e8cCopy full SHA for 56c4e8c
1 file changed
ws4py/websocket.py
@@ -362,23 +362,20 @@ def process(self, bytes):
362
self.close(s.closing.code, s.closing.reason)
363
else:
364
self.client_terminated = True
365
- s = None
366
return False
367
368
if s.errors:
369
for error in s.errors:
370
logger.debug("Error message received (%d) '%s'" % (error.code, error.reason))
371
self.close(error.code, error.reason)
372
s.errors = []
373
374
375
376
if s.has_message:
377
self.received_message(s.message)
378
if s.message is not None:
379
s.message.data = None
380
s.message = None
381
382
return True
383
384
if s.pings:
@@ -391,7 +388,6 @@ def process(self, bytes):
391
388
self.ponged(pong)
392
389
s.pongs = []
393
390
394
395
396
397
def run(self):
0 commit comments