Skip to content

Commit

Permalink
issue guard#513: allow stop when not started
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Nov 13, 2020
1 parent 389c92b commit 5f13dca
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 197 deletions.
2 changes: 1 addition & 1 deletion lib/listen/event/loop.rb
Expand Up @@ -67,7 +67,7 @@ def stop
return if stopped?
transition! :stopped

if @wait_thread.alive?
if @wait_thread&.alive?
@wait_thread.join
end
@wait_thread = nil
Expand Down

0 comments on commit 5f13dca

Please sign in to comment.