Skip to content

Commit

Permalink
Preserve exception in case it is lost before it is re-reaised
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Sep 1, 2015
1 parent b976ff3 commit f0c2f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engineio/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def handle_get_request(self, environ, start_response):
start_response)
try:
packets = self.poll()
except IOError:
except IOError as e:
self.close(wait=False)
raise
raise e
return packets

def handle_post_request(self, environ):
Expand Down

0 comments on commit f0c2f5b

Please sign in to comment.