mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
reset initial demodulator params on reconnects
This commit is contained in:
parent
c6e01eed1a
commit
a7e2aae292
2 changed files with 7 additions and 1 deletions
|
|
@ -1006,7 +1006,9 @@ function onAudioStart(apiType){
|
|||
var reconnect_timeout = false;
|
||||
|
||||
function on_ws_closed() {
|
||||
$("#openwebrx-panel-receiver").demodulatorPanel().stopDemodulator();
|
||||
var demodulatorPanel = $("#openwebrx-panel-receiver").demodulatorPanel();
|
||||
demodulatorPanel.stopDemodulator();
|
||||
demodulatorPanel.resetInitialParams();
|
||||
if (reconnect_timeout) {
|
||||
// max value: roundabout 8 and a half minutes
|
||||
reconnect_timeout = Math.min(reconnect_timeout * 2, 512000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue