lib/angelo/stash.rb in angelo-0.1.12 vs lib/angelo/stash.rb in angelo-0.1.13
- old
+ new
@@ -42,11 +42,12 @@
#
def each &block
stash.each do |ws|
begin
yield ws
- rescue Reel::SocketError
+ rescue Reel::SocketError, IOError, SystemCallError => e
+ debug e.message
remove_socket ws
end
end
end
@@ -71,10 +72,11 @@
#
def all_each
@@stashes.values.flatten.each do |ws|
begin
yield ws
- rescue IOError
+ rescue Reel::SocketError, IOError, SystemCallError => e
+ debug e.message
remove_socket ws
end
end
end