Skip to content

Commit

Permalink
Use matter queue for device controller callback queue to avoid comman…
Browse files Browse the repository at this point in the history
…dline tool main queue blockage
  • Loading branch information
jtung-apple committed Sep 9, 2024
1 parent df36535 commit 98be8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDeviceController_Concrete.mm
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ - (BOOL)startup:(MTRDeviceControllerStartupParamsInternal *)startupParams

// Set self as delegate, which fans out delegate callbacks to all added delegates
id<MTRDeviceControllerDelegate> selfDelegate = static_cast<id<MTRDeviceControllerDelegate>>(self);
self->_deviceControllerDelegateBridge->setDelegate(self, selfDelegate, dispatch_get_main_queue());
self->_deviceControllerDelegateBridge->setDelegate(self, selfDelegate, _chipWorkQueue);

MTR_LOG("%@ startup succeeded for nodeID 0x%016llX", self, self->_cppCommissioner->GetNodeId());
});
Expand Down

0 comments on commit 98be8ea

Please sign in to comment.