diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-03 09:20:35 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-03 09:20:35 +0000 |
commit | 9dd98aa46e01544afb84c64d461e5b2360b81eac (patch) | |
tree | 53394db0c07cb07d0b03da7bdeec7e536548ef5e /lib/net/protocol.rb | |
parent | 4550e078892fd210a4be65ab6b130d2fa95f26c3 (diff) | |
download | ruby-9dd98aa46e01544afb84c64d461e5b2360b81eac.tar.gz |
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26.
* lib/net/protocol.rb (finish): do nothing unless active.
* lib/net/http.rb: HTTP#{get,post}2 again (for new impl).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index f438a86c77..10bc8b0a14 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -64,7 +64,7 @@ module Net class Protocol - Version = '1.1.25' + Version = '1.1.26' class << self @@ -173,13 +173,12 @@ module Net end def finish - ret = active? + return false unless active? do_finish disconnect @active = false - - ret + true end def active? |