Skip to content

Commit 3832713

Browse files
committed
net: replace _writableState.finished with writableFinished
Replace usage of quasi-private _writableState.finished with public writableFinished property. PR-URL: #27974 Refs: #445 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent fad3b64 commit 3832713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ Socket.prototype.destroySoon = function() {
556556
if (this.writable)
557557
this.end();
558558

559-
if (this._writableState.finished)
559+
if (this.writableFinished)
560560
this.destroy();
561561
else
562562
this.once('finish', this.destroy);

0 commit comments

Comments
 (0)