Skip to content

Commit

Permalink
Uncomment iOS 10+ code
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xD committed Oct 20, 2021
1 parent 87696a5 commit 756c149
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ios/Classes/AblyFlutter.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ -(void)disposeWithCompletionHandler:(const dispatch_block_t)completionHandler {
[NSException raise:NSInvalidArgumentException format:@"completionHandler cannot be nil."];
}

// TODO upgrade iOS runtime requirement to 10.0 so we can use this:
// dispatch_assert_queue(dispatch_get_main_queue());

dispatch_assert_queue(dispatch_get_main_queue());

// This is contrived for now but the point is that we can introduce a clean,
// asynchronous close via a background queue here if required.
dispatch_async(dispatch_get_main_queue(), ^{
Expand Down

0 comments on commit 756c149

Please sign in to comment.