reset initial demodulator params on reconnects
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user