We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 957728a commit f8d3865Copy full SHA for f8d3865
lib/connection.js
@@ -545,7 +545,10 @@ Connection.prototype.eof = function (e) {
545
};
546
547
Connection.prototype._disconnected = function (error) {
548
- if (this.heartbeat_out) clearTimeout(this.heartbeat_out);
+ if (this.heartbeat_out) {
549
+ clearTimeout(this.heartbeat_out);
550
+ this.heartbeat_out = undefined;
551
+ }
552
if (this.heartbeat_in) clearTimeout(this.heartbeat_in);
553
var was_closed_with_non_fatal_error = this.closed_with_non_fatal_error;
554
if (this.closed_with_non_fatal_error) {
0 commit comments