Commit 192e6de6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove onicecandidate callback when closing file transfer.

This avoids an unsightly warning when an ICE candidate arrives
late.
parent e78791d3
......@@ -1744,8 +1744,10 @@ TransferredFile.prototype.close = function() {
f.dc.onerror = null;
f.dc.onmessage = null;
}
if(f.pc)
if(f.pc) {
f.pc.onicecandidate = null;
f.pc.close();
}
f.dc = null;
f.pc = null;
f.data = [];
......
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