Skip to content

Commit

Permalink
allow receiving parts in offering state
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Dec 14, 2024
1 parent 251b5c6 commit c8701c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,9 @@ class Connection {
return;
}

// do nothing if file transfer not in accepted or receiving state
if(fileTransfer.status !== FileTransferrer.STATUS_ACCEPTED && fileTransfer.status !== FileTransferrer.STATUS_RECEIVING){
console.log(`[FileTransfer] ${fileTransfer.id} received part ${filePart.partIndex + 1}/${filePart.totalParts}, but not in accepted or receiving state.`);
// do nothing if file transfer not in offering, accepted or receiving state
if(fileTransfer.status !== FileTransferrer.STATUS_OFFERING && fileTransfer.status !== FileTransferrer.STATUS_ACCEPTED && fileTransfer.status !== FileTransferrer.STATUS_RECEIVING){
console.log(`[FileTransfer] ${fileTransfer.id} received part ${filePart.partIndex + 1}/${filePart.totalParts}, but not in offering, accepted or receiving state.`);
return;
}

Expand Down

0 comments on commit c8701c1

Please sign in to comment.