mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Remove all down connections at websocket close.
This commit is contained in:
parent
e7e1f248ea
commit
d24aafd314
1 changed files with 6 additions and 0 deletions
|
@ -391,6 +391,12 @@ function serverConnect() {
|
|||
document.getElementById('sharebox').checked = false;
|
||||
document.getElementById('sharebox').disabled = true;
|
||||
setShareMedia();
|
||||
for(let id in down) {
|
||||
let c = down[id];
|
||||
delete(down[id]);
|
||||
c.close(false);
|
||||
delMedia(id);
|
||||
}
|
||||
reject(new Error('websocket close ' + e.code + ' ' + e.reason));
|
||||
};
|
||||
socket.onmessage = function(e) {
|
||||
|
|
Loading…
Reference in a new issue