fixed bug with fs.watch and test mode

This commit is contained in:
coderaiser 2013-02-28 09:41:57 -05:00
parent dca23b0501
commit 12d8212ef1

View file

@ -128,13 +128,6 @@
}
function init(){
fs.watch(CONFIG_PATH, function(){
/* every catch up - calling twice */
setTimeout(function() {
readConfig();
}, 1000);
});
if(update)
update.get();
@ -174,6 +167,14 @@
}
}
if(Config.server)
fs.watch(CONFIG_PATH, function(){
/* every catch up - calling twice */
setTimeout(function() {
readConfig();
}, 1000);
});
server.start({
appcache : appCacheProcessing,
minimize : minimize,