mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-19 06:50:16 +00:00
Remove executeRequest from HttpManager. It has some show-stopping bugs, like leaking semaphore counts (since it never waited) and being generally thread-unsafe. Implementing it in a way that would be asynchronous and thread-safe is a non-trivial task, so I've opted to remove it and change callers to use executeRequestSynchronously.
This commit is contained in:
@@ -62,10 +62,6 @@ static const NSString* PORT = @"47984";
|
||||
_errorOccurred = false;
|
||||
}
|
||||
|
||||
- (void) executeRequest:(HttpRequest*)request {
|
||||
[NSURLConnection connectionWithRequest:request.request delegate:self];
|
||||
}
|
||||
|
||||
- (NSURLRequest*) createRequestFromString:(NSString*) urlString enableTimeout:(BOOL)normalTimeout {
|
||||
NSURL* url = [[NSURL alloc] initWithString:urlString];
|
||||
NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:url];
|
||||
|
||||
Reference in New Issue
Block a user