lib/ftpd/server.rb in ftpd-0.6.0 vs lib/ftpd/server.rb in ftpd-0.7.0
- old
+ new
@@ -107,11 +107,11 @@
@server_socket.accept
end
def close_socket(socket)
if socket.respond_to?(:shutdown)
- socket.shutdown
- socket.read
+ socket.shutdown rescue nil
+ socket.read rescue nil
end
ensure
socket.close
end