If rtlsdr_read_async returns early, the device is probably hosed, give up;
rely on the caller of dump1090 to restart.
This commit is contained in:
parent
10cfc13c3a
commit
28e7ccca8e
|
@ -362,10 +362,11 @@ void rtlsdrRun()
|
|||
|
||||
start_cpu_timing(&rtlsdr_thread_cpu);
|
||||
|
||||
while (!Modes.exit) {
|
||||
rtlsdr_read_async(RTLSDR.dev, rtlsdrCallback, NULL,
|
||||
/* MODES_RTL_BUFFERS */ 4,
|
||||
MODES_RTL_BUF_SIZE);
|
||||
if (!Modes.exit) {
|
||||
log_with_timestamp("rtlsdr_read_async returned unexpectedly, probably lost the USB device, bailing out");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue