Skip to content

Commit

Permalink
fixes #23: incorrect use of run_with_reloader
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed May 6, 2014
1 parent 33c1e8a commit a0c3072
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ def run(self, app, host=None, port=None, **kwargs):
kwargs.pop('resource', None)
self.server = SocketIOServer((host, port), app.wsgi_app, resource='socket.io', **kwargs)
if app.debug:
@run_with_reloader
def run_server():
self.server.serve_forever()
run_server()
run_with_reloader(run_server)
else:
self.server.serve_forever()

Expand Down

0 comments on commit a0c3072

Please sign in to comment.