From 9837394edb5c134884cdc7b2b205f470f8023405 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Sat, 17 Dec 2011 18:38:26 -0600 Subject: [PATCH] allows servers to close without sending anything first --- lib/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/server.js b/lib/server.js index 11e6557..c6b957a 100644 --- a/lib/server.js +++ b/lib/server.js @@ -223,6 +223,7 @@ function MongolianServer(mongolian, url) { maxBsonSize:4 * 1024 * 1024 * 4 * 3 }) var connected = false + callback(null, connection) connection.on('error', function(error) { mongolian.log.error(self+": "+require('util').inspect(error)) if (!connected) callback(error)