From 9dd98aa46e01544afb84c64d461e5b2360b81eac Mon Sep 17 00:00:00 2001 From: aamine Date: Mon, 3 Jul 2000 09:20:35 +0000 Subject: * 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 --- lib/net/protocol.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/net/protocol.rb') 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? -- cgit v1.2.3