Skip to content

Commit

Permalink
just in case the stream has been terminated and cleaned up in a diffe…
Browse files Browse the repository at this point in the history
…rent thread already (should fix #78)
  • Loading branch information
Lawouach committed Feb 19, 2013
1 parent 2d5730b commit d60c3ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ws4py/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ def process(self, bytes):

if s.has_message:
self.received_message(s.message)
s.message.data = None
s.message = None
if s.message is not None:
s.message.data = None
s.message = None
s = None
return True

Expand Down

0 comments on commit d60c3ac

Please sign in to comment.