File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ const ServerDescription = require('./server_description').ServerDescription;
4
4
const calculateDurationInMs = require ( '../utils' ) . calculateDurationInMs ;
5
5
6
6
// pulled from `Server` implementation
7
- const STATE_DISCONNECTED = 'disconnected ' ;
8
- const STATE_DISCONNECTING = 'disconnecting ' ;
7
+ const STATE_CLOSED = 'closed ' ;
8
+ const STATE_CLOSING = 'closing ' ;
9
9
10
10
/**
11
11
* Published when server description changes, but does NOT include changes to the RTT.
@@ -180,7 +180,7 @@ function monitorServer(server, options) {
180
180
181
181
// emit an event indicating that our description has changed
182
182
server . emit ( 'descriptionReceived' , new ServerDescription ( server . description . address , isMaster ) ) ;
183
- if ( server . s . state === STATE_DISCONNECTED || server . s . state === STATE_DISCONNECTING ) {
183
+ if ( server . s . state === STATE_CLOSED || server . s . state === STATE_CLOSING ) {
184
184
return ;
185
185
}
186
186
You can’t perform that action at this time.
0 commit comments