summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-14 03:20:16 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-14 03:20:16 +0000
commitee6a0ecbcb7787d2ccbfdc33721f9ee9cf85c2e4 (patch)
treea497592e12ffb13676a04d505caaf0f22180c2c9 /lib
parent445c938f7bb3428a1406e8e40888805357e83d10 (diff)
* lib/net/http.rb (Net::HTTP#start): should check whether HTTP session is opened before finishing. (ruby-bugs-ja:PR#463)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index d5b0abd..b6a04d1 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -721,7 +721,7 @@ module Net
do_start
return yield(self)
ensure
- finish
+ finish if @started
end
end
do_start