Searches for a missing server when a new one gets registered.
[MenuTunes.git] / NetworkController.m
index 33cee8f..41bf4ac 100755 (executable)
@@ -308,6 +308,9 @@ static NetworkController *sharedController;
 {
     ITDebugLog(@"Resolved service named %@.", [sender name]);
     [[NSNotificationCenter defaultCenter] postNotificationName:@"ITMTFoundNetService" object:nil];
+    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"useSharedPlayer"] && !connectedToServer) {
+        [[MainController sharedController] checkForRemoteServer];
+    }
     [sender stop];
 }