mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
Change URL timeout to 4 seconds to improve offline behavior
This commit is contained in:
@@ -108,8 +108,8 @@ static const NSString* HTTPS_PORT = @"47984";
|
||||
NSURL* url = [[NSURL alloc] initWithString:urlString];
|
||||
NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:url];
|
||||
if (normalTimeout) {
|
||||
// Timeout the request after 7 seconds
|
||||
[request setTimeoutInterval:7];
|
||||
// Timeout the request after 4 seconds
|
||||
[request setTimeoutInterval:4];
|
||||
}
|
||||
else {
|
||||
// Timeout the request after 60 seconds
|
||||
|
||||
Reference in New Issue
Block a user