From b8e25654c32f39f33ab3ba4b688098486d4603a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 11 Jul 2026 00:11:24 +0400 Subject: [PATCH] fix: detect DONE in WebSocket, bump to 1.0.13 --- site/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/app.py b/site/app.py index 73b72a5..e26e30c 100644 --- a/site/app.py +++ b/site/app.py @@ -29,6 +29,8 @@ def ws_upload(ws): chunk = ws.receive() if chunk is None: break + if isinstance(chunk, str) and chunk == 'DONE': + break total += len(chunk) elapsed = round((time.time() - t0) * 1000) ws.send(json.dumps({'ok': True, 'bytes': total, 'elapsed_ms': elapsed}))