lib/ftpd/server.rb in ftpd-0.15.0 vs lib/ftpd/server.rb in ftpd-0.16.0
- old
+ new
@@ -72,10 +72,10 @@
socket = accept
rescue Errno::EAGAIN, Errno::ECONNABORTED, Errno::EPROTO, Errno::EINVAL
IO.select([@server_socket])
sleep(0.2)
retry
- rescue Errno::EBADF
+ rescue Errno::EBADF, Errno::ENOTSOCK
raise unless @stopping
@stopping = false
break
end
start_session socket