mirror of
https://github.com/jech/galene.git
synced 2024-11-12 19:55:59 +01:00
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:
parent
ccb7cb9127
commit
dd979652c2
1 changed files with 5 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue