final fix?

This commit is contained in:
lelo 2025-04-21 20:36:39 +02:00
parent 0307bf0857
commit 8e503000a6

3
app.py
View File

@ -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')