Exit when the connection to the daemon is lost.
[snett.git] / bin / snett
index 96d6c01..62b8269 100755 (executable)
--- a/bin/snett
+++ b/bin/snett
@@ -71,6 +71,7 @@ module Snett
                        @xmms = Xmms::Client.new(PKG_NAME)
                        @xmms.connect(ENV["XMMS_PATH"])
                        @xmms.add_to_glib_mainloop
+                       @xmms.on_disconnect { destroy }
 
                        @broadcasts = []