Don't kill listener thread on spec

This commit is contained in:
Thibaud Guillaume-Gentil 2011-09-03 21:44:09 +02:00
parent b0295c1437
commit ee5468eeeb
2 changed files with 7 additions and 8 deletions

View File

@ -3,7 +3,7 @@ private
def start(rest_delay = @rest_delay)
sleep(rest_delay || 1)
@listener.update_last_event
@thread = Thread.new { @listener.start }
Thread.new { @listener.start }
sleep(rest_delay || 1)
end
@ -19,7 +19,6 @@ private
def stop(rest_delay = @rest_delay)
sleep(rest_delay || 1)
@listener.stop
Thread.kill(@thread)
sleep(rest_delay || 1)
end