diff --git a/lib/core/sdam/topology.js b/lib/core/sdam/topology.js index 81c81fbbb5..a90617294e 100644 --- a/lib/core/sdam/topology.js +++ b/lib/core/sdam/topology.js @@ -930,13 +930,8 @@ function serverConnectEventHandler(server, topology) { }; } -function serverErrorEventHandler(server, topology) { +function serverErrorEventHandler(server /*, topology */) { return function(err) { - topology.emit( - 'serverClosed', - new monitoring.ServerClosedEvent(topology.s.id, server.description.address) - ); - if (isSDAMUnrecoverableError(err, server)) { resetServerState(server, err, { clearPool: true }); return;