christkv/node-mongodb-native — pull request #474 by joelnordell (2012-01-11 06:01:02+00:00)
Title: fix for server.js when connection is lost

Hi,

Here's a small fix for node-mongodb-native to prevent an exception from being thrown when the server connection is closed (i am using auto_reconnect:true) -- for some reason, it was trying to call a null function.

I don't know why the callback was null, (didn't dig into it that much) but my fix makes it work -- and it certainly never hurts to check for null before trying to call a callback :)

Joel