1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +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:
Juliusz Chroboczek 2024-12-02 13:52:57 +01:00
parent e78791d3a6
commit 192e6de6ef

View file

@ -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 = [];