From a0ea1b0b97c5136a7a4677e1ca17c8366cde5e26 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 9 Nov 2020 23:51:33 +0100 Subject: [PATCH] fixup --- lib/net.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net.js b/lib/net.js index f5a6567eae0d97..4b3b96c8cd2736 100644 --- a/lib/net.js +++ b/lib/net.js @@ -435,7 +435,7 @@ function afterShutdown() { // of the other side sending a FIN. The standard 'write after end' // is overly vague, and makes it seem like the user's code is to blame. function writeAfterFIN(chunk, encoding, cb) { - if (!this.writabledEnded) { + if (!this.writableEnded) { return ReflectApply( stream.Duplex.prototype.write, this, [chunk, encoding, cb]); }