Skip to content

Commit

Permalink
Addressing feedback from Cliff
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadb-amazon committed Mar 16, 2023
1 parent 42413d2 commit cc752b0
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,15 +667,13 @@ - (void)disconnect:(dispatch_queue_t _Nonnull)clientQueue requestSentHandler:(nu

- (void)purgeCache:(dispatch_queue_t _Nonnull)clientQueue responseHandler:(void (^)(MatterError * _Nonnull))responseHandler
{
[self dispatchOnMatterSDKQueue:@"purgeCache(...)"
block:^{
CHIP_ERROR err = CastingServer::GetInstance()->PurgeCache();
dispatch_async(clientQueue, ^{
responseHandler(
[[MatterError alloc] initWithCode:err.AsInteger()
message:[NSString stringWithUTF8String:err.AsString()]]);
});
}];
dispatch_sync(_chipWorkQueue, ^{
CHIP_ERROR err = CastingServer::GetInstance()->PurgeCache();
dispatch_async(clientQueue, ^{
responseHandler([[MatterError alloc] initWithCode:err.AsInteger()
message:[NSString stringWithUTF8String:err.AsString()]]);
});
});
}

- (void)contentLauncher_launchUrl:(ContentApp * _Nonnull)contentApp
Expand Down

0 comments on commit cc752b0

Please sign in to comment.