Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed a small bug at the dirty db initialize

  • Loading branch information...
commit c67acf5ca30b085ecba8a04f4ff00ba4f1d466cf 1 parent db4f8a3
@Pita authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.