From ee6a0ecbcb7787d2ccbfdc33721f9ee9cf85c2e4 Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 14 May 2003 03:20:16 +0000 Subject: * 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 --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net/http.rb') diff --git a/lib/net/http.rb b/lib/net/http.rb index d5b0abd452..b6a04d1bf5 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 -- cgit v1.2.3