mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
added tryCatch to fs.watch in cloudcmd.js
This commit is contained in:
parent
dd413c87e5
commit
7f217de931
2 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
12
cloudcmd.js
12
cloudcmd.js
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue