Commit f1cd8053 authored by Tobias's avatar Tobias

fix crash by background notification due to wrong unrecognized selector name

parent 7f6c27cf
......@@ -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]];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment