From 721ca6f479ffab5d39f082be65633762197b1d47 Mon Sep 17 00:00:00 2001 From: Sophie Saskin Date: Fri, 17 Aug 2018 11:59:30 -0400 Subject: [PATCH] fix oversight --- lib/connection/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connection/connection.js b/lib/connection/connection.js index 3a48b0039..cb9ebe117 100644 --- a/lib/connection/connection.js +++ b/lib/connection/connection.js @@ -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; }