Skip to content

Commit

Permalink
Darwin: invalidate MTRDevice work queue
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Sep 27, 2023
1 parent 4f90aa0 commit 06d7e90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ - (void)setDelegate:(id<MTRDeviceDelegate>)delegate queue:(dispatch_queue_t)queu
- (void)invalidate
{
MTR_LOG_INFO("%@ invalidate", self);

[_asyncWorkQueue invalidate];

os_unfair_lock_lock(&self->_lock);

_weakDelegate = nil;
Expand Down

0 comments on commit 06d7e90

Please sign in to comment.