aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-12 02:50:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-12 02:50:09 +0000
commit0a19e7f0a3fa1be6d31a702f0bf39477c1b16f0a (patch)
tree22444c310c4c0a960d4764b5ca145a908cafd558 /lib
parent41784333f12e8f38f6869f4dd35ab5a710d0cffe (diff)
downloadruby-0a19e7f0a3fa1be6d31a702f0bf39477c1b16f0a.tar.gz
net/ftp.rb: NullSocket#closed?
* net/ftp.rb: add NullSocket#closed? to fix closing not opened connection. [Fix GH-1232] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/ftp.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 26bca1a54a..cfd8cf7945 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -1270,6 +1270,10 @@ module Net
def read_timeout=(sec)
end
+ def closed?
+ true
+ end
+
def close
end