mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
changed socketio async mode from None to 'threading'
in order to function correctly with python threads
This commit is contained in:
parent
0ae60848cf
commit
6a018b7290
@ -57,7 +57,7 @@ html_title = 'Binary Kitchen Doorlock (%s - v%s)' % (__status__, __version__)
|
|||||||
|
|
||||||
webapp = Flask(__name__)
|
webapp = Flask(__name__)
|
||||||
webapp.config.from_pyfile('config.cfg')
|
webapp.config.from_pyfile('config.cfg')
|
||||||
socketio = SocketIO(webapp, async_mode=None)
|
socketio = SocketIO(webapp, async_mode='threading')
|
||||||
Bootstrap(webapp)
|
Bootstrap(webapp)
|
||||||
serial_port = webapp.config.get('SERIAL_PORT')
|
serial_port = webapp.config.get('SERIAL_PORT')
|
||||||
simulate = webapp.config.get('SIMULATE')
|
simulate = webapp.config.get('SIMULATE')
|
||||||
|
Loading…
Reference in New Issue
Block a user