Skip to content

Commit 5d99345

Browse files
author
Thomas
committed
fix timer double cancel
1 parent 3dc8ead commit 5d99345

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/src/signaling_device/src/signaling_device_impl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ void SignalingDeviceImpl::deinit() {
185185
{
186186
const std::lock_guard<std::mutex> lock(mutex_);
187187
timer = timer_;
188+
timer_ = nullptr;
188189
}
189190
if (timer) {
190191
timer->cancel();

0 commit comments

Comments
 (0)