Skip to content

Commit

Permalink
rescue Timeout::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
ichverstehe committed Oct 20, 2008
1 parent 7cfb748 commit 0ea6836
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/isaac.rb
Expand Up @@ -98,6 +98,9 @@ def connect
end
rescue Interrupt => e
puts "Disconnected! An error occurred: #{e.inspect}"
rescue Timeout::Error => e
puts "Timeout: #{e}"
connect
end
end

Expand Down

0 comments on commit 0ea6836

Please sign in to comment.