Skip to content

Commit cf6d8dd

Browse files
committed
Warning removed by reordering NSURLProtocolClient method calls.
1 parent 50c0d01 commit cf6d8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d-ui-tests/tests/CCPackageTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ - (void)startLoading
5757

5858

5959
id<NSURLProtocolClient> client = [self client];
60-
[client URLProtocol:self didLoadData:data];
6160
[client URLProtocol:self didReceiveResponse:response cacheStoragePolicy:NSURLCacheStorageNotAllowed];
61+
[client URLProtocol:self didLoadData:data];
6262
[client URLProtocolDidFinishLoading:self];
6363
}
6464

6565
- (void)stopLoading
6666
{
67-
NSLog(@"Package test: Something went wrong.");
67+
// Nothing to do
6868
}
6969

7070
@end

0 commit comments

Comments
 (0)