Skip to content

Commit

Permalink
Skips current league if no output is returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-jhaveri committed Mar 13, 2014
1 parent 5b5e360 commit bb8d98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/workers/get_tournament_matches.rb
Expand Up @@ -19,8 +19,8 @@ def self.perform(api_key)

while true
if output == nil
sleep 3600
next
sleep 60
break
end
break if output["result"]["matches"] == []

Expand Down

0 comments on commit bb8d98e

Please sign in to comment.