Skip to content

Commit

Permalink
Fix error on websocket exit on uWSGI (Fixes #330)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Sep 11, 2023
1 parent 614f564 commit 9bc9e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engineio/async_drivers/gevent_uwsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ def select_greenlet_runner(fd, event):
self._event)

self.app(self)
uwsgi.disconnect()

def close(self):
"""Disconnects uWSGI from the client."""
if self._req_ctx is None:
# better kill it here in case wait() is not called again
self._select_greenlet.kill()
self._event.set()
uwsgi.disconnect()

def _send(self, msg):
"""Transmits message either in binary or UTF-8 text mode,
Expand Down

0 comments on commit 9bc9e86

Please sign in to comment.