Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed May 23, 2024
1 parent f2d9a18 commit d88540e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ - (void)_changeInternalState:(MTRInternalDeviceState)state
MTR_LOG("%@ internal state change %lu => %lu", self, static_cast<unsigned long>(lastState), static_cast<unsigned long>(state));

/* BEGIN DRAGONS: This is a huge hack for a specific use case, do not rename, remove or modify behavior here */
id<MTRDeviceDelegate> delegate = _weakDelegate.strongObject;
if ([delegate respondsToSelector:@selector(_deviceInternalStateChanged:)]) {
dispatch_async(_delegateQueue, ^{
[(id) delegate _deviceInternalStateChanged:self];
Expand Down

0 comments on commit d88540e

Please sign in to comment.