serialport reconnect rework - v1.3.0.1

This commit is contained in:
Amateur Audio Dude
2024-09-24 17:26:31 +10:00
committed by GitHub
parent b4047cbabb
commit 2068eb8f6a
+5 -3
View File
@@ -57,9 +57,11 @@ var _3LAS = /** @class */ (function () {
audioStreamRestartInterval = setInterval(() => {
if (requiresAudioStreamRestart) {
requiresAudioStreamRestart = false;
this.Stop();
this.Start();
console.log("Audio stream restarted after radio data loss.");
if (Stream) {
this.Stop();
this.Start();
console.log("Audio stream restarted after radio data loss.");
}
}
}, 3000);