Skip to content

Commit

Permalink
[Darwin] MTRDeviceController isSuspended needs to hold _suspensionLock
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple committed Sep 7, 2024
1 parent 33fec50 commit 282c973
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/darwin/Framework/CHIP/MTRDeviceController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ - (BOOL)isRunning

- (BOOL)isSuspended
{
std::lock_guard lock(_suspensionLock);
return _suspended;
}

Expand Down

0 comments on commit 282c973

Please sign in to comment.