catch Errno::EINVAL in reconnect
This commit is contained in:
parent
8396d7f8cc
commit
07b799bf37
1 changed files with 2 additions and 2 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue