Skip to content
Browse files

fixed a small bug at the dirty db initialize

  • Loading branch information...
1 parent db4f8a3 commit c67acf5ca30b085ecba8a04f4ff00ba4f1d466cf @Pita committed Dec 5, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 dirty_db.js
View
5 dirty_db.js
@@ -37,7 +37,10 @@ exports.database = function(settings)
exports.database.prototype.init = function(callback)
{
this.db = new dirty(this.settings.filename);
- callback();
+ this.db.on('load', function(err)
+ {
+ callback();
+ });
}
exports.database.prototype.get = function (key, callback)

0 comments on commit c67acf5

Please sign in to comment.
Something went wrong with that request. Please try again.