Skip to content

Commit

Permalink
Fix issue #28.
Browse files Browse the repository at this point in the history
Invoke connectionStarted: when a connection is started.
  • Loading branch information
Will Harris authored and Steve Streza committed May 11, 2010
1 parent b4ca152 commit 439ce38
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions MGTwitterEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ - (NSString *)getImageAtURL:(NSString *)urlString
[_connections setObject:connection forKey:[connection identifier]];
[connection release];
}

if ([self _isValidDelegateForSelector:@selector(connectionStarted:)])
[_delegate connectionStarted:[connection identifier]];

return [connection identifier];
}
Expand Down Expand Up @@ -488,6 +491,9 @@ - (NSString *)_sendRequestWithMethod:(NSString *)method
[_connections setObject:connection forKey:[connection identifier]];
[connection release];
}

if ([self _isValidDelegateForSelector:@selector(connectionStarted:)])
[_delegate connectionStarted:[connection identifier]];

return [connection identifier];
}
Expand Down Expand Up @@ -547,6 +553,9 @@ - (NSString *)_sendDataRequestWithMethod:(NSString *)method
[_connections setObject:connection forKey:[connection identifier]];
[connection release];
}

if ([self _isValidDelegateForSelector:@selector(connectionStarted:)])
[_delegate connectionStarted:[connection identifier]];

return [connection identifier];

Expand Down Expand Up @@ -1992,6 +2001,9 @@ - (NSString *)getXAuthAccessTokenForUsername:(NSString *)username
[_connections setObject:connection forKey:[connection identifier]];
[connection release];
}

if ([self _isValidDelegateForSelector:@selector(connectionStarted:)])
[_delegate connectionStarted:[connection identifier]];

return [connection identifier];
}
Expand Down

0 comments on commit 439ce38

Please sign in to comment.