Skip to content

Commit

Permalink
Seems the HTTP server isn't always available as soon as the Xcode say…
Browse files Browse the repository at this point in the history
…s the app is launched. Give it 30 seconds to sort itself out.
  • Loading branch information
Rob Holland committed Apr 23, 2010
1 parent ff43691 commit b5a25a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/icuke/simulator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ def launch(project_file, options = {})
XCode.quit
retry
end

timeout(30) do
begin
view
rescue Errno::ECONNREFUSED
sleep(0.5)
end
end
end
end
end
Expand Down

0 comments on commit b5a25a3

Please sign in to comment.