mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 01:09:18 +02:00
serialport reconnect rework - v1.3.0.1
This commit is contained in:
@@ -57,10 +57,12 @@ var _3LAS = /** @class */ (function () {
|
|||||||
audioStreamRestartInterval = setInterval(() => {
|
audioStreamRestartInterval = setInterval(() => {
|
||||||
if (requiresAudioStreamRestart) {
|
if (requiresAudioStreamRestart) {
|
||||||
requiresAudioStreamRestart = false;
|
requiresAudioStreamRestart = false;
|
||||||
|
if (Stream) {
|
||||||
this.Stop();
|
this.Stop();
|
||||||
this.Start();
|
this.Start();
|
||||||
console.log("Audio stream restarted after radio data loss.");
|
console.log("Audio stream restarted after radio data loss.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|
||||||
// Stream connection watchdog monitors mp3 frames
|
// Stream connection watchdog monitors mp3 frames
|
||||||
|
|||||||
Reference in New Issue
Block a user