소스 검색

fix crash by background notification due to wrong unrecognized selector name

Tobias Conradi 9 년 전
부모
커밋
f1cd8053f9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Sources/VLCLocalServerDiscoveryController.m

+ 2 - 2
Sources/VLCLocalServerDiscoveryController.m

@@ -156,12 +156,12 @@ typedef NS_ENUM(NSUInteger, VLCLocalServerSections) {
     NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
 
     [defaultCenter addObserver:self
-                      selector:@selector(applicationWillResignActive:)
+                      selector:@selector(stopDiscovery)
                           name:UIApplicationWillResignActiveNotification
                         object:[UIApplication sharedApplication]];
 
     [defaultCenter addObserver:self
-                      selector:@selector(applicationDidBecomeActive:)
+                      selector:@selector(startDiscovery:)
                           name:UIApplicationDidBecomeActiveNotification
                         object:[UIApplication sharedApplication]];