name:name
port:SERVER_PORT];
fullPass = [[NSUserDefaults standardUserDefaults] dataForKey:@"sharedPlayerPassword"];
- if (fullPass) {
+ if ([fullPass length]) {
[fullPass getBytes:&buffer range:NSMakeRange(6, 4)];
[serverPass release];
serverPass = [[NSData alloc] initWithBytes:&buffer length:strlen(&buffer)];
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];