Skip to content

Commit

Permalink
if no error call with null
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Jan 6, 2013
1 parent 9f67c35 commit 150de82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongodb/connection/server.js
Expand Up @@ -148,7 +148,7 @@ Server.prototype.close = function(callback) {
// Set server status as disconnected
this._serverState = 'disconnected';
// Peform callback if present
if(typeof callback === 'function') callback();
if(typeof callback === 'function') callback(null);
};

/**
Expand Down

0 comments on commit 150de82

Please sign in to comment.