catch Errno::EINVAL in reconnect

This commit is contained in:
Ward Wouts 2003-06-14 23:44:20 +00:00
parent 8396d7f8cc
commit 07b799bf37

View file

@ -1,6 +1,6 @@
#################################
#
# $Dwarf: article.rb,v 1.66 2003/04/28 20:34:15 ward Exp $
# $Dwarf: article.rb,v 1.67 2003/04/28 20:50:43 ward Exp $
# $Source$
#
# article.rb
@ -54,7 +54,7 @@ end
def reconnect(server)
begin
@connections[server]["nntp"] = Net::NNTP.new(server)
rescue SocketError
rescue SocketError, Errno::EINVAL
print "Reconnect to #{server} failed: #{$!}\n"
del_server(server)
raise PermError, "Couldn't connect to #{server}"