mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
aamine
* lib/net/protocol.rb: Command#critical_ok * lib/net/smtp.rb: clear critical flag before go to SMTP git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
033a4ffa4b
commit
34f44ca496
3 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Oct 26 02:42:50 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
|
||||||
|
|
||||||
|
* lib/net/protocol.rb: Command#critical_ok
|
||||||
|
|
||||||
|
* lib/net/smtp.rb: clear critical flag before go to SMTP
|
||||||
|
|
||||||
Wed Oct 25 12:30:19 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Wed Oct 25 12:30:19 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* array.c (rb_ary_concat): replacing array might be the receiver
|
* array.c (rb_ary_concat): replacing array might be the receiver
|
||||||
|
|
|
@ -402,9 +402,9 @@ module Net
|
||||||
def critical
|
def critical
|
||||||
return if @critical
|
return if @critical
|
||||||
@critical = true
|
@critical = true
|
||||||
r = yield
|
ret = yield
|
||||||
@critical = false
|
@critical = false
|
||||||
r
|
ret
|
||||||
end
|
end
|
||||||
|
|
||||||
def critical?
|
def critical?
|
||||||
|
@ -421,6 +421,11 @@ module Net
|
||||||
@critical = false
|
@critical = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def critical_ok
|
||||||
|
@critical = false
|
||||||
|
end
|
||||||
|
public :critical_ok
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -146,6 +146,7 @@ module Net
|
||||||
rescue ProtocolError
|
rescue ProtocolError
|
||||||
if @esmtp then
|
if @esmtp then
|
||||||
@esmtp = false
|
@esmtp = false
|
||||||
|
@command.critical_ok
|
||||||
retry
|
retry
|
||||||
else
|
else
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue