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

Commit

Permalink
fix(client-session): don't report errors for endSessions commands
Browse files Browse the repository at this point in the history
NODE-1088
  • Loading branch information
mbroadst committed Oct 6, 2017
1 parent 22f4362 commit c34eaf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ class ClientSession {
'admin.$cmd',
{ endSessions: 1, ids: [this.id] },
{ readPreference: ReadPreference.primaryPreferred },
err => {
() => {
this.hasEnded = true;

// release the server session back to the pool
this.sessionPool.release(this.serverSession);

if (err) return callback(err, null);
// spec indicates that we should ignore all errors for `endSessions`
callback(null, null);
}
);
Expand Down

0 comments on commit c34eaf5

Please sign in to comment.