diff options
author | Ted Gould <ted@gould.cx> | 2014-03-20 17:13:05 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-20 17:13:05 -0500 |
commit | 0ef1cba5e195c4d92b7dd5753cb88f072aa9f297 (patch) | |
tree | 04b019310b57b58377e67380b3cd0af0aeddcba3 /src/service.vala | |
parent | c04df47dc6e092e843532c602d367ef315a5d79d (diff) | |
download | ayatana-indicator-sound-0ef1cba5e195c4d92b7dd5753cb88f072aa9f297.tar.gz ayatana-indicator-sound-0ef1cba5e195c4d92b7dd5753cb88f072aa9f297.tar.bz2 ayatana-indicator-sound-0ef1cba5e195c4d92b7dd5753cb88f072aa9f297.zip |
Make sure to clear the player on exit
Diffstat (limited to 'src/service.vala')
-rw-r--r-- | src/service.vala | 4 |
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; } |