From f72061996cc9446b52d383c23f33533ad8bec6f3 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 27 Nov 2021 21:30:07 +0100 Subject: [PATCH] Fix error handling in gotClose. --- static/protocol.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/protocol.js b/static/protocol.js index 65e2fc5..e1864f4 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -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(); };