mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
fix failure state for downloader
This commit is contained in:
parent
302fe7c9f8
commit
d39dc42dbf
1 changed files with 4 additions and 4 deletions
8
web.py
8
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue