don't destroy empty socket

This commit is contained in:
AJ ONeal 2018-09-05 01:21:47 -06:00
parent 9b0d758a8b
commit 02a53f681f
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ function startTelebitRemote(rawCb) {
});
function retryLoop() {
// disconnected somehow
myRemote.destroy();
if (myRemote) { myRemote.destroy(); }
myRemote = null;
setTimeout(function () {
startTelebitRemote(function () {});