added tryCatch to fs.watch in cloudcmd.js

This commit is contained in:
coderaiser 2013-05-30 06:39:38 -04:00
parent dd413c87e5
commit 7f217de931
2 changed files with 9 additions and 5 deletions

View file

@ -31,6 +31,8 @@ dispatch
* Removed linuxWatch function from main.js.
* Added tryCatch to fs.watch in cloudcmd.js.
2012.04.22, v0.2.0

View file

@ -179,11 +179,13 @@
}
if (Config.server)
fs.watch(CONFIG_PATH, function(){
/* every catch up - calling twice */
setTimeout(function() {
readConfig();
}, 1000);
Util.tryCatchLog(function(){
fs.watch(CONFIG_PATH, function(){
/* every catch up - calling twice */
setTimeout(function() {
readConfig();
}, 1000);
});
});
var lParams = {