lib/ftpd/server.rb in ftpd-1.0.1 vs lib/ftpd/server.rb in ftpd-1.1.0

- old
+ new

@@ -35,9 +35,17 @@ def bound_port @server_socket.addr[1] end + # The calling thread will suspend execution until the server is + # stopped. + + def join + raise 'Server is not started!' if @server_thread.nil? + @server_thread.join + end + # Start the server. This creates the server socket, and the # thread to service it. def start @server_socket = make_server_socket