From d39dc42dbf5615ebb88837bd95aa000f20c56694 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 28 May 2024 04:05:41 +1200 Subject: [PATCH] fix failure state for downloader --- web.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web.py b/web.py index 2b97ae2..01a8a5d 100644 --- a/web.py +++ b/web.py @@ -678,10 +678,10 @@ class ReticulumWebChat: # handle file download failure def on_file_download_failure(failure_reason): - asyncio.run(client.send_str(json.dumps({ + asyncio.create_task(client.send_str(json.dumps({ "type": "nomadnet.file.download", "nomadnet_file_download": { - "status": "error", + "status": "failure", "failure_reason": failure_reason, "destination_hash": destination_hash.hex(), "file_path": file_path, @@ -730,10 +730,10 @@ class ReticulumWebChat: # handle page download failure def on_page_download_failure(failure_reason): - asyncio.run(client.send_str(json.dumps({ + asyncio.create_task(client.send_str(json.dumps({ "type": "nomadnet.page.download", "nomadnet_page_download": { - "status": "error", + "status": "failure", "failure_reason": failure_reason, "destination_hash": destination_hash.hex(), "page_path": page_path,