Skip to content
Browse files

Fix issue #28.

Invoke connectionStarted: when a connection is started.
  • Loading branch information...
1 parent b4ca152 commit 439ce38080f0345d1b02d4fe395a8421c0957668 Will Harris committed with stevestreza May 11, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 MGTwitterEngine.m
View
12 MGTwitterEngine.m
@@ -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];
}
@@ -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];
}
@@ -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];
@@ -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];
}

0 comments on commit 439ce38

Please sign in to comment.
Something went wrong with that request. Please try again.