Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Saskin authored and mbroadst committed Sep 4, 2018
1 parent 6d82151 commit 721ca6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function fastFallbackConnect(conn, _options, callback) {
const connectionHandler = (err, _connection) => {
if (_connection) {
if (connection) {
['error', 'timeout', 'close'].forEach(event => _connection.removeAllListeners(event));
_connection.removeAllListeners('error');
_connection.unref();
return;
}
Expand Down

0 comments on commit 721ca6f

Please sign in to comment.