Permalink
Browse files

Merge branch 'callbackInfo.info'

  • Loading branch information...
thesmart committed Dec 15, 2012
2 parents 4f25f76 + d8b6efd commit d6325d56f9dcbc9dfd331dfa1fa70d0787474a00
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongodb/connection/server.js
@@ -333,7 +333,7 @@ Server.prototype.connect = function(dbInstance, options, callback) {
}
// The command executed another request, log the handler again under that request id
- if(mongoReply.requestId > 0 && mongoReply.cursorId.toString() != "0" && callbackInfo.info && callbackInfo.info.exhaust) {
+ if(mongoReply.requestId > 0 && mongoReply.cursorId.toString() != "0" && callbackInfo && callbackInfo.info && callbackInfo.info.exhaust) {
dbInstance._reRegisterHandler(mongoReply.requestId, callbackInfo);
}

0 comments on commit d6325d5

Please sign in to comment.