Try to work around a libusb crash on exit after SIGINT.
This commit is contained in:
parent
f0fe4663d5
commit
971e5754ff
2 changed files with 3 additions and 1 deletions
|
|
@ -1085,7 +1085,8 @@ int main(int argc, char **argv) {
|
|||
// Nothing is touching the rtlsdr device now.
|
||||
|
||||
if (Modes.filename == NULL) {
|
||||
rtlsdr_close(Modes.dev);
|
||||
// This currently causes crashes within libusb for unknown reasons:
|
||||
//rtlsdr_close(Modes.dev);
|
||||
}
|
||||
|
||||
pthread_cond_destroy(&Modes.data_cond); // Thread cleanup - only after the reader thread is dead!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue