mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
increase connect-timeout to 60 seconds
This commit is contained in:
@@ -113,7 +113,7 @@ class UpdateCommand < Command
|
||||
self.help = 'Update the software'
|
||||
|
||||
def self.curl(cmd)
|
||||
resp = `/usr/bin/curl --connect-timeout 5 #{cmd}`
|
||||
resp = `/usr/bin/curl --connect-timeout 60 #{cmd}`
|
||||
if $?.exitstatus != 0
|
||||
die "Error when connecting to the server. Check your Internet connection and try again."
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user