Skip to content

Commit

Permalink
Merge pull request #8561 from krazycoder2k/patch-7
Browse files Browse the repository at this point in the history
T265 fix for race condition during pipeline stop.
  • Loading branch information
ev-mp authored Mar 24, 2021
2 parents f137e18 + c67522b commit 02e51de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tm2/tm-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1328,8 +1328,8 @@ namespace librealsense
void tm2_sensor::stop_interrupt()
{
if (_interrupt_request) {
_interrupt_callback->cancel();
if (_device->cancel_request(_interrupt_request)) {
_interrupt_callback->cancel();
_interrupt_request.reset();
}
}
Expand Down Expand Up @@ -1389,8 +1389,8 @@ namespace librealsense
void tm2_sensor::stop_stream()
{
if (_stream_request) {
_stream_callback->cancel();
if (_device->cancel_request(_stream_request)) {
_stream_callback->cancel();
_stream_request.reset();
}
}
Expand Down

0 comments on commit 02e51de

Please sign in to comment.