From b9c1968b48a007e5a9de50ab7a31aea8cf13e7b7 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 16 Jul 2021 23:10:13 +0200 Subject: [PATCH] Treat closing unknown streams as a warning. --- static/protocol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/protocol.js b/static/protocol.js index 6ca269b..a5e1e97 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -779,7 +779,7 @@ ServerConnection.prototype.gotRenegotiate = function(id) { ServerConnection.prototype.gotClose = function(id) { let c = this.down[id]; if(!c) - throw new Error('unknown down stream'); + console.warn('unknown down stream', id); c.close(); };