diff --git a/bin/telebitd.js b/bin/telebitd.js index 9901a26..7d838cd 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -849,7 +849,7 @@ function startTelebitRemote(rawCb) { }); function retryLoop() { // disconnected somehow - myRemote.destroy(); + if (myRemote) { myRemote.destroy(); } myRemote = null; setTimeout(function () { startTelebitRemote(function () {});