From db5208698f4c475df4942ac4fbd186a608febc0c Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 18 Dec 2007 21:13:36 +0000 Subject: [PATCH] fix typo in last commit --- macosx/PortChecker.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macosx/PortChecker.m b/macosx/PortChecker.m index dbd509983..4c08748fe 100644 --- a/macosx/PortChecker.m +++ b/macosx/PortChecker.m @@ -31,15 +31,17 @@ { if ((self = [super init])) { + fDelegate = delegate; + NSURLRequest * portProbeRequest = [NSURLRequest requestWithURL: [NSURL URLWithString: [NSString stringWithFormat: @"http://transmission.m0k.org/PortCheck.php?port=%d", portNumber]] cachePolicy: - [NSApp isOnLeopardOrBetter] ? NSURLRequestReloadIgnoringLocalAndRemoteCacheData : NSURLRequestReloadIgnoringCacheData + [NSApp isOnLeopardOrBetter] ? NSURLRequestReloadIgnoringLocalCacheData : NSURLRequestReloadIgnoringCacheData timeoutInterval: 15.0]; fStatus = PORT_STATUS_CHECKING; if ((fConnection = [[NSURLConnection alloc] initWithRequest: portProbeRequest delegate: self])) - fPortProbeData = [[NSMutableData data] retain]; + fPortProbeData = [[NSMutableData alloc] init]; else { NSLog(@"Unable to get port status: failed to initiate connection");