Skip to content

Commit

Permalink
Readme.md: Fix user_reloader issue in example
Browse files Browse the repository at this point in the history
Better documentation for issue #24
  • Loading branch information
stlehmann committed Aug 9, 2019
1 parent 626690c commit 491b4ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def handle_logging(client, userdata, level, buf):


if __name__ == '__main__':
socketio.run(app, host='0.0.0.0', port=5000, use_reloader=True, debug=True)
# important: Do not use reloader because this will create two Flask instances.
# Flask-MQTT only supports running with one instance
socketio.run(app, host='0.0.0.0', port=5000, use_reloader=False, debug=False)

```

Expand Down

0 comments on commit 491b4ff

Please sign in to comment.