Skip to content

Commit e48536f

Browse files
committed
tls: Trivial use_strict fix
1 parent 875dd37 commit e48536f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/tls.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,15 +646,16 @@ CryptoStream.prototype.destroySoon = function(err) {
646646
// was written on this side was read from the other side.
647647
var self = this;
648648
var waiting = 1;
649-
function finish() {
650-
if (--waiting === 0) self.destroy();
651-
}
652649
this._opposite.once('end', finish);
653650
if (!this._finished) {
654651
this.once('finish', finish);
655652
++waiting;
656653
}
657654
}
655+
656+
function finish() {
657+
if (--waiting === 0) self.destroy();
658+
}
658659
};
659660

660661

0 commit comments

Comments
 (0)