Skip to content

Commit

Permalink
more robustness in dealing with bad connections
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed May 31, 2016
1 parent 82ffcfb commit 5a1c707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _handler(sid, *args):
raise
type, value, traceback = sys.exc_info()
return err_handler(value)
if flask.session.modified:
if flask.session.modified and sid in self.server.environ:
self.server.environ[sid]['saved_session'] = {}
self._copy_session(
flask.session,
Expand Down

0 comments on commit 5a1c707

Please sign in to comment.