Improve guard stop

- prevent run_guard_task(:stop) to be skipped
This commit is contained in:
Thibaud Guillaume-Gentil 2011-09-29 22:39:24 +02:00
parent aaa08d3a89
commit 56ebe9f9f4
2 changed files with 6 additions and 2 deletions

View File

@ -122,8 +122,13 @@ module Guard
# #
def stop def stop
UI.info 'Bye bye...', :reset => true UI.info 'Bye bye...', :reset => true
listener.stop
listener.lock
interactor.lock
run_guard_task(:stop) run_guard_task(:stop)
listener.stop
abort abort
end end

View File

@ -26,7 +26,6 @@ module Guard
def stop def stop
super super
@stop = true @stop = true
sleep(@latency)
end end
# Check if the listener is usable on the current OS. # Check if the listener is usable on the current OS.