Skip to content

Commit

Permalink
Merge pull request #7687 from Domos/fix_thread_join_on_self
Browse files Browse the repository at this point in the history
Fix `Resource deadlock avoided` exception on thread join
  • Loading branch information
ev-mp committed Nov 3, 2020
2 parents 4252237 + 2490cd7 commit 3ca4554
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,11 @@ namespace librealsense

if(val < 0)
{
stop_data_capture();
_is_capturing = false;
_is_started = false;

// Notify kernel
streamoff();
}
else
{
Expand Down

0 comments on commit 3ca4554

Please sign in to comment.