don't destroy empty socket
This commit is contained in:
parent
9b0d758a8b
commit
02a53f681f
|
@ -849,7 +849,7 @@ function startTelebitRemote(rawCb) {
|
||||||
});
|
});
|
||||||
function retryLoop() {
|
function retryLoop() {
|
||||||
// disconnected somehow
|
// disconnected somehow
|
||||||
myRemote.destroy();
|
if (myRemote) { myRemote.destroy(); }
|
||||||
myRemote = null;
|
myRemote = null;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
startTelebitRemote(function () {});
|
startTelebitRemote(function () {});
|
||||||
|
|
Loading…
Reference in New Issue