Skip to content

Commit

Permalink
Fixes case where URLSession:dataTask:didReceiveResponse: could some…
Browse files Browse the repository at this point in the history
…times return before calling its completion handler
  • Loading branch information
jszumski committed Oct 10, 2023
1 parent 2b3b917 commit 8d4795f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/SBTUITestTunnelServer/private/SBTProxyURLProtocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,6 @@ -(void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataT
[self.client URLProtocol:self didReceiveResponse:response cacheStoragePolicy:NSURLCacheStorageNotAllowed];
[self.client URLProtocol:self didLoadData:stubResponse.data];
[self.client URLProtocolDidFinishLoading:self];

return;
} else {
[self.client URLProtocol:self didReceiveResponse:response cacheStoragePolicy:NSURLCacheStorageNotAllowed];
}
Expand Down

0 comments on commit 8d4795f

Please sign in to comment.