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

Commit

Permalink
fix(server): emit "first connect" error if initial connect fails due …
Browse files Browse the repository at this point in the history
…to ECONNREFUSED
  • Loading branch information
vkarpov15 authored and mbroadst committed May 28, 2019
1 parent 58bed9b commit 853bcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/topologies/server.js
Expand Up @@ -421,7 +421,7 @@ var eventHandler = function(self, event) {

// On first connect fail
if (
self.s.pool.state === 'disconnected' &&
['disconnected', 'connecting'].indexOf(self.s.pool.state) !== -1 &&
self.initialConnect &&
['close', 'timeout', 'error', 'parseError'].indexOf(event) !== -1
) {
Expand Down

0 comments on commit 853bcfe

Please sign in to comment.