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
UI.info 'Bye bye...', :reset => true
listener.stop
listener.lock
interactor.lock
run_guard_task(:stop)
listener.stop
abort
end

View File

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