Exit when the connection to the daemon is lost.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 7 Apr 2006 21:24:00 +0000 (21:24 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 7 Apr 2006 23:24:00 +0000 (23:24 +0000)
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 = []