1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-26 02:25:58 +01:00

Fix error handling in gotClose.

This commit is contained in:
Juliusz Chroboczek 2021-11-27 21:30:07 +01:00
parent 4b2cd311e3
commit f72061996c

View file

@ -783,8 +783,10 @@ ServerConnection.prototype.gotRenegotiate = function(id) {
*/
ServerConnection.prototype.gotClose = function(id) {
let c = this.down[id];
if(!c)
if(!c) {
console.warn('unknown down stream', id);
return;
}
c.close();
};