We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e84eb33 commit 652e220Copy full SHA for 652e220
lib/permessage-deflate.js
@@ -446,7 +446,10 @@ class PerMessageDeflate {
446
447
if (fin) data = data.slice(0, data.length - 4);
448
449
- // Set callback to null so we won't call it twice if socket is closed
+ //
450
+ // Ensure that the callback will not be called again in
451
+ // `PerMessageDeflate#cleanup()`.
452
453
this._deflate[kCallback] = null;
454
455
if (fin && this.params[`${endpoint}_no_context_takeover`]) {
0 commit comments