Skip to content

Commit

Permalink
Add lock/unlock to CancelTimer
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson committed May 2, 2023
1 parent fb56c41 commit 22d4958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/Linux/bluez/ChipDeviceScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ ChipDeviceScanner::~ChipDeviceScanner()
StopScan();

// In case the timeout timer is still active
DeviceLayer::PlatformMgr().LockChipStack();
chip::DeviceLayer::SystemLayer().CancelTimer(TimerExpiredCallback, this);
DeviceLayer::PlatformMgr().UnlockChipStack();

g_object_unref(mManager);
g_object_unref(mCancellable);
Expand Down

0 comments on commit 22d4958

Please sign in to comment.