Skip to content

Commit

Permalink
don't remove file transfer when offer doesn't receive an ack
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Dec 14, 2024
1 parent a1df778 commit a4a675f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/pages/NodeFilesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default {
try {
await FileTransferrer.offerFileTransfer(this.nodeId, file);
} catch(e) {
DialogUtils.showErrorAlert(e);
console.log(e);
}
},
Expand Down
9 changes: 0 additions & 9 deletions src/js/FileTransferrer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
}
}
Expand Down

0 comments on commit a4a675f

Please sign in to comment.