aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-20 17:13:05 -0500
committerTed Gould <ted@gould.cx>2014-03-20 17:13:05 -0500
commit0ef1cba5e195c4d92b7dd5753cb88f072aa9f297 (patch)
tree04b019310b57b58377e67380b3cd0af0aeddcba3
parentc04df47dc6e092e843532c602d367ef315a5d79d (diff)
downloadayatana-indicator-sound-0ef1cba5e195c4d92b7dd5753cb88f072aa9f297.tar.gz
ayatana-indicator-sound-0ef1cba5e195c4d92b7dd5753cb88f072aa9f297.tar.bz2
ayatana-indicator-sound-0ef1cba5e195c4d92b7dd5753cb88f072aa9f297.zip
Make sure to clear the player on exit
-rw-r--r--src/service.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index c8a57ac..8b83082 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -110,6 +110,10 @@ public class IndicatorSound.Service: Object {
this.loop.run ();
+ /* Ensure we clear the player right after the mainloop quits */
+ if (this.accounts_service != null)
+ this.accounts_service.player = null;
+
return 0;
}