diff options
author | NicoleYarroch <nicole@livio.io> | 2019-04-01 16:25:06 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2019-04-01 16:25:06 -0400 |
commit | 1a44df8377904de637ec22998359ed50a6e67438 (patch) | |
tree | 5386669b17a9280e70809648f8f7a0341ef42d86 | |
parent | d1e4fd03083218f3c2be650a91572a35d3477a98 (diff) | |
download | sdl_ios-1a44df8377904de637ec22998359ed50a6e67438.tar.gz |
Fixed timer thread
-rw-r--r-- | SmartDeviceLink/SDLTouchManager.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLTouchManager.m b/SmartDeviceLink/SDLTouchManager.m index 87dd8f035..61334fbf2 100644 --- a/SmartDeviceLink/SDLTouchManager.m +++ b/SmartDeviceLink/SDLTouchManager.m @@ -463,9 +463,10 @@ static NSUInteger const MaximumNumberOfTouches = 2; [strongSelf sdl_cancelSingleTapTimer]; if ([strongSelf.touchEventDelegate respondsToSelector:@selector(touchManager:didReceiveSingleTapForView:atPoint:)]) { if (strongSelf.hitTester) { - NSOperationQueue *currentQueue = NSOperationQueue.currentQueue; + dispatch_queue_t currentQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, + 0); [strongSelf.hitTester viewForPoint:point selectedViewHandler:^(UIView * _Nullable selectedView) { - dispatch_async(currentQueue.underlyingQueue, ^{ + dispatch_async(currentQueue, ^{ [self sdl_notifyDelegateSingleTapForView:selectedView point:point]; }); }]; |