host:host];
testConnection = [[NSConnection connectionWithReceivePort:nil sendPort:testPort] retain];
[testConnection setReplyTimeout:2];
+ [testConnection setRequestTimeout:2];
tempProxy = (NetworkObject *)[testConnection rootProxy];
[tempProxy serverName];
valid = [tempProxy isValid];
return NO;
NS_ENDHANDLER
- if (!clientProxy) {
+ if (!tempProxy) {
ITDebugLog(@"Null proxy! Couldn't connect!");
[testConnection release];
[testPort release];
{
ITDebugLog(@"Resolved service named %@.", [sender name]);
[[NSNotificationCenter defaultCenter] postNotificationName:@"ITMTFoundNetService" object:nil];
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"useSharedPlayer"] && !connectedToServer) {
+ [[MainController sharedController] checkForRemoteServer];
+ }
[sender stop];
}