2
2
mirror of https://git.coolaj86.com/coolaj86/telebit.js.git synced 2025-03-03 07:00:45 +00:00

don't destroy empty socket

This commit is contained in:
AJ ONeal 2018-09-05 01:21:47 -06:00
parent 9b0d758a8b
commit 02a53f681f

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 () {});