class Puma::Server

def stop(sync=false)

def stop(sync=false)
  notify_safely(STOP_COMMAND)
  @thread.join if @thread && sync
end