@@ -197,7 +197,7 @@ -(void)addClientTokenToRequest:(ASIHTTPRequest *)clientRequest
197
197
__strong typeof (weakRequest)strongRequest = weakRequest;
198
198
LOG_EXPR ([strongRequest responseHeaders ]);
199
199
LOG_EXPR ([[NSString alloc ] initWithData: [strongRequest responseData ] encoding: NSUTF8StringEncoding]);
200
- [strongRequest clearDelegatesAndCancel ];
200
+ [[ NSNotificationCenter defaultCenter ] postNotificationOnMainThreadWithName: @" MA_Notify_GoogleAuthFailed " object: nil ];
201
201
for (id obj in [self .clientAuthWaitQueue reverseObjectEnumerator ]) {
202
202
[(ASIHTTPRequest *)obj cancel ];
203
203
[self .clientAuthWaitQueue removeObject: obj];
@@ -211,7 +211,6 @@ -(void)addClientTokenToRequest:(ASIHTTPRequest *)clientRequest
211
211
LOG_EXPR ([strongRequest responseStatusCode ]);
212
212
LOG_EXPR ([strongRequest responseHeaders ]);
213
213
[[NSNotificationCenter defaultCenter ] postNotificationOnMainThreadWithName: @" MA_Notify_GoogleAuthFailed" object: nil ];
214
- [strongRequest clearDelegatesAndCancel ];
215
214
self.openReaderStatus = notAuthenticated;
216
215
for (id obj in [self .clientAuthWaitQueue reverseObjectEnumerator ]) {
217
216
[(ASIHTTPRequest *)obj cancel ];
@@ -348,7 +347,6 @@ -(void)getTokenForRequest:(ASIFormDataRequest *)clientRequest;
348
347
LOG_EXPR ([strongRequest responseHeaders ]);
349
348
LOG_EXPR ([[NSString alloc ] initWithData: [strongRequest responseData ] encoding: NSUTF8StringEncoding]);
350
349
self.tToken = nil ;
351
- [strongRequest clearDelegatesAndCancel ];
352
350
self.openReaderStatus = missingTToken;
353
351
for (id obj in [self .tTokenWaitQueue reverseObjectEnumerator ]) {
354
352
[(ASIFormDataRequest *)obj cancel ];
@@ -934,7 +932,6 @@ -(void)subscribeToFeed:(NSString *)feedURL
934
932
// Needs to be synchronous so UI doesn't refresh too soon.
935
933
request.delegate = nil ;
936
934
[request startSynchronous ];
937
- [request clearDelegatesAndCancel ];
938
935
}
939
936
940
937
-(void )unsubscribeFromFeed : (NSString *)feedURL
@@ -960,7 +957,6 @@ -(void)setFolderName:(NSString *)folderName forFeed:(NSString *)feedURL set:(BOO
960
957
[request setPostValue: [NSString stringWithFormat: @" user/-/label/%@ " , folderName] forKey: flag ? @" a" : @" r" ];
961
958
request.delegate = nil ;
962
959
[request startSynchronous ];
963
- [request clearDelegatesAndCancel ];
964
960
}
965
961
966
962
-(void )markRead : (Article *)article readFlag : (BOOL )flag
0 commit comments