Improve guard stop
- prevent run_guard_task(:stop) to be skipped
This commit is contained in:
parent
aaa08d3a89
commit
56ebe9f9f4
@ -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
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user