Skip to content
Snippets Groups Projects
Commit 075ee015 authored by mcmlxxix's avatar mcmlxxix
Browse files

reload json db instance when reloading a module

parent 3069ef33
Branches
Tags
No related merge requests found
......@@ -482,7 +482,7 @@ engine = new (function() {
this.name = name;
this.dir = dir;
this.queue = undefined;
this.db = new JSONdb(this.dir+this.name+".json");
this.db;
this.init = function() {
/* load module service files */
if(file_exists(this.dir + "service.js")) {
......@@ -492,6 +492,7 @@ engine = new (function() {
log(LOG_ERROR,"error loading module: " + this.name);
}
}
this.db = new JSONdb(this.dir+this.name+".json");
}
this.init();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment