Skip to content

Commit

Permalink
Merge pull request LockerProject#74 from seancron/patch-1
Browse files Browse the repository at this point in the history
Infinite loop in startup caused by mongodb output
  • Loading branch information
ctide committed May 28, 2011
2 parents 52f760b + aa42ecc commit f35ae5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lockerd.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ path.exists(lconfig.me + '/' + lconfig.mongo.dataDir, function(exists) {
var mongoOutput = "";
var callback = function(data) {
mongoOutput += data;
if(mongoOutput.match(/\[initandlisten\] waiting for connections on port/g)) {
if(mongoOutput.match(/ waiting for connections on port/g)) {
mongoProcess.stdout.removeListener('data', callback);
checkKeys();
}
Expand Down

0 comments on commit f35ae5c

Please sign in to comment.