mirror of
https://github.com/jech/galene.git
synced 2024-12-22 07:15:47 +01:00
Remove onicecandidate callback when closing file transfer.
This avoids an unsightly warning when an ICE candidate arrives late.
This commit is contained in:
parent
e78791d3a6
commit
192e6de6ef
1 changed files with 3 additions and 1 deletions
|
@ -1744,8 +1744,10 @@ TransferredFile.prototype.close = function() {
|
||||||
f.dc.onerror = null;
|
f.dc.onerror = null;
|
||||||
f.dc.onmessage = null;
|
f.dc.onmessage = null;
|
||||||
}
|
}
|
||||||
if(f.pc)
|
if(f.pc) {
|
||||||
|
f.pc.onicecandidate = null;
|
||||||
f.pc.close();
|
f.pc.close();
|
||||||
|
}
|
||||||
f.dc = null;
|
f.dc = null;
|
||||||
f.pc = null;
|
f.pc = null;
|
||||||
f.data = [];
|
f.data = [];
|
||||||
|
|
Loading…
Reference in a new issue