mirror of
https://github.com/transmission/transmission
synced 2025-03-17 17:25:32 +00:00
fix typo in last commit
This commit is contained in:
parent
d2e57f4b54
commit
db5208698f
1 changed files with 4 additions and 2 deletions
|
@ -31,15 +31,17 @@
|
||||||
{
|
{
|
||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
{
|
{
|
||||||
|
fDelegate = delegate;
|
||||||
|
|
||||||
NSURLRequest * portProbeRequest = [NSURLRequest requestWithURL: [NSURL URLWithString:
|
NSURLRequest * portProbeRequest = [NSURLRequest requestWithURL: [NSURL URLWithString:
|
||||||
[NSString stringWithFormat: @"http://transmission.m0k.org/PortCheck.php?port=%d", portNumber]] cachePolicy:
|
[NSString stringWithFormat: @"http://transmission.m0k.org/PortCheck.php?port=%d", portNumber]] cachePolicy:
|
||||||
[NSApp isOnLeopardOrBetter] ? NSURLRequestReloadIgnoringLocalAndRemoteCacheData : NSURLRequestReloadIgnoringCacheData
|
[NSApp isOnLeopardOrBetter] ? NSURLRequestReloadIgnoringLocalCacheData : NSURLRequestReloadIgnoringCacheData
|
||||||
timeoutInterval: 15.0];
|
timeoutInterval: 15.0];
|
||||||
|
|
||||||
fStatus = PORT_STATUS_CHECKING;
|
fStatus = PORT_STATUS_CHECKING;
|
||||||
|
|
||||||
if ((fConnection = [[NSURLConnection alloc] initWithRequest: portProbeRequest delegate: self]))
|
if ((fConnection = [[NSURLConnection alloc] initWithRequest: portProbeRequest delegate: self]))
|
||||||
fPortProbeData = [[NSMutableData data] retain];
|
fPortProbeData = [[NSMutableData alloc] init];
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NSLog(@"Unable to get port status: failed to initiate connection");
|
NSLog(@"Unable to get port status: failed to initiate connection");
|
||||||
|
|
Loading…
Add table
Reference in a new issue