mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 04:37:26 -05:00
Add signal handlers for a proper cleanup
Fix locking problem in get_rtlsdr_sample when it waits indefinitely even when exitflag is non-zero; cleanup the code.
This commit is contained in:
@@ -1732,8 +1732,6 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
if (choice == 20)
|
||||
{
|
||||
ncursesClose();
|
||||
//cleanup_rtlsdr_stream();
|
||||
cleanupAndExit (opts, state);
|
||||
}
|
||||
|
||||
@@ -3414,7 +3412,6 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||
|
||||
if (c == 113) //'q' key, quit
|
||||
{
|
||||
ncursesClose();
|
||||
cleanupAndExit (opts, state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user