Skip to content

Commit

Permalink
Merge pull request Spacebrew#75 from nbartzokas/master
Browse files Browse the repository at this point in the history
fix issues starting from other working dirs by changing to script dir…
  • Loading branch information
quinkennedy authored Nov 6, 2017
2 parents e4e5ca8 + 5a60c15 commit 0a3a498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node_persistent_admin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.chdir(__dirname);
var processArguments = function(){
var argv = process.argv;
for(var i = 2; i < argv.length; i++){
Expand Down Expand Up @@ -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);
setInterval(function(){if (wsClient.readyState !== OPEN){wsClient.terminate(); setupWSClient()}}, 10000);

0 comments on commit 0a3a498

Please sign in to comment.