staging/lib/vcap/staging/plugin/rails3/resources/cf-rails-console/lib/live_console.rb
def stop
    if thread
      if thread == Thread.current
        self.thread = nil
        Thread.current.exit!
      end

      thread.exit
      if thread.join(0.1).nil?
        thread.exit!
      end
      self.thread = nil
      true
    else
      false
    end
  end
# Ends the running thread, if it exists.  Returns true if a thread was
# running, false otherwise.
Ends the running thread, if it exists.  Returns true if a thread was
running, false otherwise.
Ends the running thread if it exists . Returns true if a thread was running false otherwise .
def stop
    if thread
      if thread == Thread.current
        self.thread = nil
        Thread.current.exit!
      end
      thread.exit
      if thread.join(0.1).nil?
        thread.exit!
      end
      self.thread = nil
      true
    else
      false
    end
  end
def stop if thread if thread == Thread . current self . thread = nil Thread . current . exit! end thread . exit if thread . join ( 0.1 ) . nil? thread . exit! end self . thread = nil true else false end end
Ends the running thread, if it exists.
Ends the running thread if it exists .