From a4a675fe19cb5af411f75531d9ef8958b410f9c5 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sat, 14 Dec 2024 21:14:13 +1300 Subject: [PATCH] don't remove file transfer when offer doesn't receive an ack --- src/components/pages/NodeFilesPage.vue | 2 +- src/js/FileTransferrer.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/pages/NodeFilesPage.vue b/src/components/pages/NodeFilesPage.vue index daba4fd..fe42ea5 100644 --- a/src/components/pages/NodeFilesPage.vue +++ b/src/components/pages/NodeFilesPage.vue @@ -233,7 +233,7 @@ export default { try { await FileTransferrer.offerFileTransfer(this.nodeId, file); } catch(e) { - DialogUtils.showErrorAlert(e); + console.log(e); } }, diff --git a/src/js/FileTransferrer.js b/src/js/FileTransferrer.js index fc760a8..ea78a8f 100644 --- a/src/js/FileTransferrer.js +++ b/src/js/FileTransferrer.js @@ -57,17 +57,8 @@ class FileTransferrer { } catch(e) { console.log(e); if(attempt === this.MAX_PACKET_ATTEMPTS){ - this.log("offerFileTransfer failed", e); - - // remove file transfer - GlobalState.fileTransfers = GlobalState.fileTransfers.filter((fileTransfer) => { - return fileTransfer.id !== fileTransferId; - }); - - // rethrow exception throw e; - } } }