summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-25 17:40:30 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-25 17:40:30 +0000
commit88be1bae795db48bd578d8b3928329c5ce4954b1 (patch)
tree8dc640c0f56ecd242e1d086a25b54255b1c7606b
parent49f1cc63343e3207f48c8bd4135cfdb8c6a26c52 (diff)
downloadruby-88be1bae795db48bd578d8b3928329c5ce4954b1.tar.gz
ruby-88be1bae795db48bd578d8b3928329c5ce4954b1.tar.xz
ruby-88be1bae795db48bd578d8b3928329c5ce4954b1.zip
aamine
* lib/net/protocol.rb: Command#critical_ok * lib/net/smtp.rb: clear critical flag before go to SMTP git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/net/protocol.rb9
-rw-r--r--lib/net/smtp.rb1
3 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c792f409b..04239bc54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* array.c (rb_ary_concat): replacing array might be the receiver
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index 237c4a116..8aca2ef2d 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -402,9 +402,9 @@ module Net
def critical
return if @critical
@critical = true
- r = yield
+ ret = yield
@critical = false
- r
+ ret
end
def critical?
@@ -421,6 +421,11 @@ module Net
@critical = false
end
+ def critical_ok
+ @critical = false
+ end
+ public :critical_ok
+
end
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 4ea9a2f22..33fc41e42 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -146,6 +146,7 @@ module Net
rescue ProtocolError
if @esmtp then
@esmtp = false
+ @command.critical_ok
retry
else
raise