Commit dd979652 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

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.
parent ccb7cb91
......@@ -1871,6 +1871,11 @@ ServerConnection.prototype.sendFile = function(id, file) {
return;
}
if(f.state === 'closed') {
// the client cancelled the transfer
return;
}
sc.transferredFiles[f.fullid()] = f;
sc.userMessage('filetransfer', id, {
type: 'invite',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment