Skip to content

Commit

Permalink
remove error about eventlet/gevent used with flask run
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jan 24, 2019
1 parent 4463173 commit 9a71773
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,6 @@ def loads(*args, **kwargs):
'Flask-SocketIO is Running under Werkzeug, WebSocket is '
'not available.')
self.server_options['async_mode'] = 'threading'
elif self.server_options['async_mode'] != 'threading':
raise RuntimeError(
'The "flask run" command does not support {}, please '
'start your server with "socketio.run(app)".'.format(
self.server_options['async_mode']))
self.server = socketio.Server(**self.server_options)
self.async_mode = self.server.async_mode
for handler in self.handlers:
Expand Down

0 comments on commit 9a71773

Please sign in to comment.