diff --git a/tools/web_monitor/app.py b/tools/web_monitor/app.py index a83e7d89..3cf512c0 100644 --- a/tools/web_monitor/app.py +++ b/tools/web_monitor/app.py @@ -51,9 +51,9 @@ async def websocket_scan(websocket: WebSocket): for miner in all_miners: send_miners.append({"ip": str(miner["ip"]), "model": miner["model"]}) await websocket.send_json(send_miners) - await websocket.send_text("Done") except WebSocketDisconnect: + print("Websocket disconnected.") pass diff --git a/tools/web_monitor/templates/scan.html b/tools/web_monitor/templates/scan.html index 617776d0..dc1ac58c 100644 --- a/tools/web_monitor/templates/scan.html +++ b/tools/web_monitor/templates/scan.html @@ -4,8 +4,8 @@
@@ -19,7 +19,7 @@