# File lib/directory_watcher/scanner.rb, line 52 def stop return unless running? @stop = true @thread.wakeup if @thread.status == 'sleep' @thread.join self ensure @thread = nil end