Skip to content

Commit 4450f27

Browse files
Kyungkoo Kangmattt
Kyungkoo Kang
authored andcommitted
[Issue #1520] Calling [super pause] at beginning of
Signed-off-by: Mattt Thompson <[email protected]>
1 parent 4d71254 commit 4450f27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AFNetworking/AFHTTPRequestOperation.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ - (void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *operatio
151151
#pragma mark - AFURLRequestOperation
152152

153153
- (void)pause {
154+
[super pause];
155+
154156
u_int64_t offset = 0;
155157
if ([self.outputStream propertyForKey:NSStreamFileCurrentOffsetKey]) {
156158
offset = [(NSNumber *)[self.outputStream propertyForKey:NSStreamFileCurrentOffsetKey] unsignedLongLongValue];
@@ -164,8 +166,6 @@ - (void)pause {
164166
}
165167
[mutableURLRequest setValue:[NSString stringWithFormat:@"bytes=%llu-", offset] forHTTPHeaderField:@"Range"];
166168
self.request = mutableURLRequest;
167-
168-
[super pause];
169169
}
170170

171171
#pragma mark - NSecureCoding
@@ -199,7 +199,7 @@ - (id)copyWithZone:(NSZone *)zone {
199199
operation.responseSerializer = [self.responseSerializer copyWithZone:zone];
200200
operation.completionQueue = self.completionQueue;
201201
operation.completionGroup = self.completionGroup;
202-
202+
203203
return operation;
204204
}
205205

0 commit comments

Comments
 (0)