lib/dynflow/daemon.rb in dynflow-0.2.0 vs lib/dynflow/daemon.rb in dynflow-0.3.0
- old
+ new
@@ -11,9 +11,10 @@
def run
with_lock_file do
terminated = Future.new
trap('SIGINT') { @world.terminate terminated }
terminated.wait
+ @listener.terminate.wait
end
end
def with_lock_file(&block)
if @lock_file