summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/http.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cb68ec3..baf1863 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed May 14 12:23:46 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (Net::HTTP#start): should check whether HTTP
+ session is opened before finishing. (ruby-bugs-ja:PR#463)
+
Wed May 14 09:12:55 2003 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb: reduce warning. (ruby-bugs-ja:PR#462)
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