Skip to content

Commit

Permalink
fix: revive with restored connection by failed flag as well
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzel committed Apr 23, 2023
1 parent 8c7d718 commit cf6a4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Server {
}
})
sock.once('connect', () => {
if (this._failures > 0) {
if (this._failures > 0 || this._failed) {
this.revive()
}
sock.setTimeout(0)
Expand Down

0 comments on commit cf6a4ae

Please sign in to comment.