Commit 48b7e9be authored by Felix Paul Kühne's avatar Felix Paul Kühne

local network: code simplification

(cherry picked from commit 8bd2da2d1b2e1a593ef609913fd9c21bed999c66)
parent 6d7ab12d
......@@ -245,8 +245,8 @@
//Search for UPnP Devices
[[managerInstance SSDP] startSSDP];
[[managerInstance SSDP] notifySSDPAlive];
_searchTimer = [NSTimer timerWithTimeInterval:10.0 target:self selector:@selector(_performSSDPSearch) userInfo:nil repeats:YES];
[_searchTimer setFireDate:[NSDate dateWithTimeIntervalSinceNow:1.0]];
_searchTimer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:1.0] interval:10.0 target:self selector:@selector(_performSSDPSearch) userInfo:nil repeats:YES];
[[NSRunLoop mainRunLoop] addTimer:_searchTimer forMode:NSRunLoopCommonModes];
_udnpDiscoveryRunning = YES;
}
......
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