diff options
author | Max <dmoagx@users.noreply.github.com> | 2018-04-20 23:31:57 +0200 |
---|---|---|
committer | Max <dmoagx@users.noreply.github.com> | 2018-04-20 23:31:57 +0200 |
commit | 85f37eba060a5ff5571738d8248c1cbc39d5c33b (patch) | |
tree | 89ecee2d72de665827129fd965805f0a105d9557 /Source/SPFunctions.m | |
parent | 06380f97dc8ed247ca426be8d76a08cea2de1316 (diff) | |
download | sequelpro-85f37eba060a5ff5571738d8248c1cbc39d5c33b.tar.gz sequelpro-85f37eba060a5ff5571738d8248c1cbc39d5c33b.tar.bz2 sequelpro-85f37eba060a5ff5571738d8248c1cbc39d5c33b.zip |
Fix issue with app beachballing when connecting from external URL (#2903)
Let’s hope this won’t break on older OS versions now…
Diffstat (limited to 'Source/SPFunctions.m')
-rw-r--r-- | Source/SPFunctions.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPFunctions.m b/Source/SPFunctions.m index 461304e0..ca3462c4 100644 --- a/Source/SPFunctions.m +++ b/Source/SPFunctions.m @@ -42,6 +42,12 @@ void SPMainQSync(void (^block)(void)) } } +void SPMainLoopAsync(void (^block)(void)) +{ + NSArray *modes = @[NSDefaultRunLoopMode]; + CFRunLoopPerformBlock(CFRunLoopGetMain(), modes, block); +} + int SPBetterRandomBytes(uint8_t *buf, size_t count) { if([SPOSInfo isOSVersionAtLeastMajor:10 minor:7 patch:0]) { |