Forráskód Böngészése

keychain coordinator: add missing main thread guard

(cherry picked from commit f868413e48e2cf67469a501bbaccaa47aea8c423)
Felix Paul Kühne 9 éve
szülő
commit
1a884934ca
2 módosított fájl, 19 hozzáadás és 0 törlés
  1. 14 0
      NEWS
  2. 5 0
      Sources/VLCKeychainCoordinator.m

+ 14 - 0
NEWS

@@ -3,6 +3,20 @@ iOS 2.8.0:
 * Added support for NFS shares
 * Added Bonjour discovery for SMB shares
 
+iOS 2.7.6:
+----------
+* Prevent playing the wrong file on PLEX shares
+* Fix hue video filter
+* Improved stability when unlocking app using Touch ID
+
+iOS 2.7.5:
+----------
+* Improved SMB reliability
+
+tvOS 1.0.4:
+-----------
+* Improved SMB reliability
+
 iOS 2.7.3:
 ----------
 * General stability improvements and bug fixes

+ 5 - 0
Sources/VLCKeychainCoordinator.m

@@ -157,6 +157,11 @@ NSString *const VLCPasscode = @"org.videolan.vlc-ios.passcode";
 
 - (void)PAPasscodeViewControllerDidEnterPasscode:(PAPasscodeViewController *)controller
 {
+    if (![NSThread isMainThread]) {
+        [self performSelectorOnMainThread:@selector(PAPasscodeViewControllerDidEnterPasscode:) withObject:controller waitUntilDone:NO];
+        return;
+    }
+
     [[NSNotificationCenter defaultCenter] postNotificationName:VLCPasscodeValidated object:self];
 
     VLCAppDelegate *appDelegate = (VLCAppDelegate *)[UIApplication sharedApplication].delegate;