diff --git a/node_persistent_admin.js b/node_persistent_admin.js index 5a41c5c..c8c3496 100644 --- a/node_persistent_admin.js +++ b/node_persistent_admin.js @@ -1,3 +1,4 @@ +process.chdir(__dirname); var processArguments = function(){ var argv = process.argv; for(var i = 2; i < argv.length; i++){ @@ -681,4 +682,4 @@ var CONNECTING = 0; var OPEN = 1; var CLOSING = 2; var CLOSED = 3; -setInterval(function(){if (wsClient.readyState !== OPEN){wsClient.terminate(); setupWSClient()}}, 10000); \ No newline at end of file +setInterval(function(){if (wsClient.readyState !== OPEN){wsClient.terminate(); setupWSClient()}}, 10000);