Remove onicecandidate callback when closing file transfer.
This avoids an unsightly warning when an ICE candidate arrives late.
This commit is contained in:
+3
-1
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user