mongodb/node-mongodb-native — pull request #585 by katspaugh (2012-04-16 15:33:03+00:00)
Title: Queue multiple open connection callbacks

Hi!

Since the latest version of node-mongodb-native isn't allowing multiple opened connections, some third-party code might have broken.

This patch provides backwards compatibility. When someone tries to open a connection more than once, his callback will nevertheless be executed, even if the connection is remaining single.

Emission of `open` event is also included for convenient subscription.

Thanks!