Skip to content

Commit

Permalink
Fixing bug repoted in issue #1324: (#1325)
Browse files Browse the repository at this point in the history
- Added proper call to has_request_context function

Co-authored-by: igor_kantorski <igor.kantorski@globedata.pl>
  • Loading branch information
igoras1993 and igor_kantorski authored Jul 11, 2020
1 parent e937571 commit 9a53243
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 @@ -408,7 +408,7 @@ def ping():
if callback:
# wrap the callback so that it sets app app and request contexts
sid = None
if has_request_context:
if has_request_context():
sid = getattr(flask.request, 'sid', None)
original_callback = callback

Expand Down

0 comments on commit 9a53243

Please sign in to comment.