From 55d98580600f577a780f7955bfa5111fa018bf84 Mon Sep 17 00:00:00 2001 From: aamine Date: Sun, 4 May 2003 06:18:19 +0000 Subject: * lib/net/smtp.rb: ESMTP -> SMTP transition wrongly fails. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/smtp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/net') diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 276c979b20..71d368e084 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -302,7 +302,7 @@ module Net def start( helo = 'localhost.localdomain', user = nil, secret = nil, authtype = nil ) - raise IOError, 'SMTP session opened already' if @started + raise IOError, 'SMTP session already started' if @started if block_given? begin do_start(helo, user, secret, authtype) @@ -330,7 +330,7 @@ module Net rescue ProtocolError if @esmtp @esmtp = false - @command.error_ok + @command = SMTPCommand.new(@socket) retry end raise -- cgit v1.2.3