From 2e02f2dfd2dab936e7cd9a68d46bd910c5d184e5 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Mar 2015 07:34:39 +0000 Subject: stringio.c: don't raise after close * ext/stringio/stringio.c (strio_close): don't raise on dobule close for consistent to IO#close. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/stringio/stringio.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'ext/stringio') diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index cca408fcb5..78988e194e 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -346,9 +346,6 @@ static VALUE strio_close(VALUE self) { StringIO(self); - if (CLOSED(self)) { - rb_raise(rb_eIOError, "closed stream"); - } RBASIC(self)->flags &= ~STRIO_READWRITE; return Qnil; } -- cgit v1.2.3