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 3d238a0 commit 81ac752Copy full SHA for 81ac752
lib/net.js
@@ -793,10 +793,12 @@ function onReadableStreamEnd() {
793
}
794
795
796
+
797
Socket.prototype.destroySoon = function() {
798
if (this.destroyingOnFinish) return;
799
- if (this.writable) this.end();
800
+ if (this.writable)
801
+ this.end();
802
803
if (this.writableFinished)
804
this.destroy();
@@ -809,6 +811,7 @@ Socket.prototype.destroySoon = function() {
809
811
810
812
};
813
814
815
Socket.prototype._destroy = function(exception, cb) {
816
debug('destroy');
817
0 commit comments