Permalink
Browse files

Guard RKRequestQueue containsRequest: with @synchronized. closes #690

  • Loading branch information...
1 parent 938304d commit f46beb90d2ffdf431ec4bf92fc0b26fa7c968d04 @blakewatters blakewatters committed May 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Code/Network/RKRequestQueue.m
@@ -382,7 +382,9 @@ - (BOOL)removeRequest:(RKRequest*)request {
}
- (BOOL)containsRequest:(RKRequest*)request {
- return [_requests containsObject:request];
+ @synchronized(self) {
+ return [_requests containsObject:request];
+ }
}
- (void)cancelRequest:(RKRequest*)request loadNext:(BOOL)loadNext {

0 comments on commit f46beb9

Please sign in to comment.