fix reconnection behavior

This commit is contained in:
Jakob Ketterl
2020-05-02 14:51:00 +02:00
parent 3504c8b54e
commit 6ff1b7d20a
2 changed files with 10 additions and 1 deletions

View File

@ -1241,6 +1241,7 @@ function onAudioStart(success, apiType){
var reconnect_timeout = false;
function on_ws_closed() {
$("#openwebrx-panel-receiver").demodulatorPanel().stopDemodulator();
if (reconnect_timeout) {
// max value: roundabout 8 and a half minutes
reconnect_timeout = Math.min(reconnect_timeout * 2, 512000);