Don't kill listener thread on spec
This commit is contained in:
parent
b0295c1437
commit
ee5468eeeb
@ -3,7 +3,7 @@ private
|
|||||||
def start(rest_delay = @rest_delay)
|
def start(rest_delay = @rest_delay)
|
||||||
sleep(rest_delay || 1)
|
sleep(rest_delay || 1)
|
||||||
@listener.update_last_event
|
@listener.update_last_event
|
||||||
@thread = Thread.new { @listener.start }
|
Thread.new { @listener.start }
|
||||||
sleep(rest_delay || 1)
|
sleep(rest_delay || 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -19,7 +19,6 @@ private
|
|||||||
def stop(rest_delay = @rest_delay)
|
def stop(rest_delay = @rest_delay)
|
||||||
sleep(rest_delay || 1)
|
sleep(rest_delay || 1)
|
||||||
@listener.stop
|
@listener.stop
|
||||||
Thread.kill(@thread)
|
|
||||||
sleep(rest_delay || 1)
|
sleep(rest_delay || 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user