From 150de822c326f429f85d8d13bbddfed9fc4945f3 Mon Sep 17 00:00:00 2001 From: Raynos Date: Sat, 5 Jan 2013 21:21:03 -0800 Subject: [PATCH] if no error call with `null` --- lib/mongodb/connection/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongodb/connection/server.js b/lib/mongodb/connection/server.js index 34301f656d..50635ecb55 100644 --- a/lib/mongodb/connection/server.js +++ b/lib/mongodb/connection/server.js @@ -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); }; /**