lib/ftpd/server.rb in ftpd-0.11.0 vs lib/ftpd/server.rb in ftpd-0.12.0
- old
+ new
@@ -48,9 +48,10 @@
# Stop the server. This closes the server socket, which in turn
# stops the thread.
def stop
@stopping = true
+ @server_socket.shutdown
@server_socket.close
end
private