lib/potato/irc/server.rb in potato-0.0.15 vs lib/potato/irc/server.rb in potato-0.0.16
- old
+ new
@@ -54,10 +54,10 @@
end
else
if DamnSocket === action
begin
pkt = DAmn::Packet.new(Iconv.conv("UTF-8", "LATIN1", action.readline("\0").chomp("\0")))
- rescue Errno::ECONNRESET, EOFError => e
+ rescue Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
@connections.values.each do |cl|
cl.notice "Lost connection to dAmn (#{e.class})."
cl.socket.close
end
@connections = {}
\ No newline at end of file