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
|
||||
UI.info 'Bye bye...', :reset => true
|
||||
listener.stop
|
||||
|
||||
listener.lock
|
||||
interactor.lock
|
||||
|
||||
run_guard_task(:stop)
|
||||
|
||||
listener.stop
|
||||
abort
|
||||
end
|
||||
|
||||
|
@ -26,7 +26,6 @@ module Guard
|
||||
def stop
|
||||
super
|
||||
@stop = true
|
||||
sleep(@latency)
|
||||
end
|
||||
|
||||
# Check if the listener is usable on the current OS.
|
||||
|
Loading…
Reference in New Issue
Block a user