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