Skip to content

Commit 8ad880f

Browse files
Trotttargos
authored andcommitted
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 cd78c5e commit 8ad880f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net.js

+1-1
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)