final fix?
This commit is contained in:
parent
0307bf0857
commit
8e503000a6
3
app.py
3
app.py
@ -427,13 +427,12 @@ def query_recent_connections():
|
|||||||
]
|
]
|
||||||
|
|
||||||
if connections != last_connections:
|
if connections != last_connections:
|
||||||
socketio.emit('recent_connections', connections, broadcast=True)
|
socketio.emit('recent_connections', connections)
|
||||||
last_connections = connections.copy()
|
last_connections = connections.copy()
|
||||||
|
|
||||||
socketio.sleep(1)
|
socketio.sleep(1)
|
||||||
finally:
|
finally:
|
||||||
background_thread_running = False
|
background_thread_running = False
|
||||||
print("No clients connected; stopping query thread.")
|
|
||||||
|
|
||||||
|
|
||||||
@socketio.on('connect')
|
@socketio.on('connect')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user