mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-15 14:47:30 +00:00
Enhance the connection callback protocol to include other connection listener callbacks exposed by common. Start handling some HTTP request errors.
This commit is contained in:
@@ -38,7 +38,8 @@ static const NSString* PORT = @"47984";
|
||||
|
||||
// Check root status_code
|
||||
if (![HttpManager verifyStatus: rootNode]) {
|
||||
//TODO: handle error
|
||||
NSLog(@"ERROR: Request returned with failure status");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Skip the root node
|
||||
@@ -229,6 +230,7 @@ static const NSString* PORT = @"47984";
|
||||
|
||||
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
|
||||
NSLog(@"connection error: %@", error);
|
||||
dispatch_semaphore_signal(_requestLock);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user