Skip to content

Commit

Permalink
fixed a small bug at the dirty db initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Pita committed Dec 5, 2011
1 parent db4f8a3 commit c67acf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dirty_db.js
Expand Up @@ -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)
Expand Down

0 comments on commit c67acf5

Please sign in to comment.