ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
991 stars 476 forks source link

Behaviour if RTL-SDR stick is removed or fails #22

Closed ha7ilm closed 8 years ago

ha7ilm commented 8 years ago

It seems like it still calls generate_client_id if there is no I/Q data, but fails to close clients later.

ha7ilm commented 8 years ago

Could check this in the spectrum_thread. If no new FFT data could be acquired for 30 seconds or so, then indicate failure.

ha7ilm commented 8 years ago

It could be checked it at the beginning of the generate_client_id routine. In the spectrum_thread, there should be an if (i++%fft_fps): last_fft_received_at = time.time()

ha7ilm commented 8 years ago

Fixed this in commit 38c01f056736886562331544a67ec1604e36dc9d.