summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net/ftp.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index a40b3532b11..a63acec1d8a 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -216,6 +216,7 @@ module Net
raise FTPReplyError, resp
end
conn = sock.accept
+ sock.close
end
return conn
end