Skip to content

Commit

Permalink
miri: try to prevent segfault on device disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
vladisslav2011 committed Jan 10, 2023
1 parent 07ceed4 commit f256a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/miri/miri_source_c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ miri_source_c::~miri_source_c ()
{
if (_dev) {
_running = false;
mirisdr_set_bias( _dev, 0 );
mirisdr_cancel_async( _dev );
mirisdr_set_bias( _dev, 0 );
_thread.join();
mirisdr_close( _dev );
_dev = NULL;
Expand Down

0 comments on commit f256a05

Please sign in to comment.