lib/ftpd/server.rb in ftpd-0.14.0 vs lib/ftpd/server.rb in ftpd-0.15.0

- old
+ new

@@ -48,10 +48,13 @@ # Stop the server. This closes the server socket, which in turn # stops the thread. def stop @stopping = true - @server_socket.shutdown + begin + @server_socket.shutdown + rescue Errno::ENOTCONN + end @server_socket.close end private