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 <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
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)