summaryrefslogtreecommitdiff
path: root/lib/net/protocol.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-03 09:20:35 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-03 09:20:35 +0000
commit9dd98aa46e01544afb84c64d461e5b2360b81eac (patch)
tree53394db0c07cb07d0b03da7bdeec7e536548ef5e /lib/net/protocol.rb
parent4550e078892fd210a4be65ab6b130d2fa95f26c3 (diff)
* 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.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index f438a86..10bc8b0 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?