Handle cancelled file transfer in initial callback.
If the client cancelled a file upload in the initial callback, we would incorrectly proceed with the handshake.
This commit is contained in:
@@ -1871,6 +1871,11 @@ ServerConnection.prototype.sendFile = function(id, file) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(f.state === 'closed') {
|
||||||
|
// the client cancelled the transfer
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
sc.transferredFiles[f.fullid()] = f;
|
sc.transferredFiles[f.fullid()] = f;
|
||||||
sc.userMessage('filetransfer', id, {
|
sc.userMessage('filetransfer', id, {
|
||||||
type: 'invite',
|
type: 'invite',
|
||||||
|
|||||||
Reference in New Issue
Block a user