summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-10-24 21:29:15 -0600
committermo khan <mo@mokhan.ca>2015-10-24 21:29:15 -0600
commit04685a709c317e13905d24312da923adeac71a3c (patch)
treec0ad9966edd43e8435c977bd9139c35bb93b5dbc
parentd308297e9753bdbc0b60e4d2d9a289dc395f4fe1 (diff)
stop the message bus when the application is shut down.
-rw-r--r--lib/killjoy/worker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/killjoy/worker.rb b/lib/killjoy/worker.rb
index 64ac270..4179684 100644
--- a/lib/killjoy/worker.rb
+++ b/lib/killjoy/worker.rb
@@ -19,6 +19,7 @@ module Killjoy
end
def stop
+ @message_bus.stop
@mutex.set!
end