aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-21 14:30:09 -0500
committerTed Gould <ted@gould.cx>2014-03-21 14:30:09 -0500
commit929d65e2b0df330cc3995b9ea1c6ba36732407b2 (patch)
treed1bc3a06935129f80a11f92ac0cae7799048f641 /src/service.vala
parent0f18af8fd8c22b756436a5d7ff8c93e6d9a489a8 (diff)
downloadayatana-indicator-sound-929d65e2b0df330cc3995b9ea1c6ba36732407b2.tar.gz
ayatana-indicator-sound-929d65e2b0df330cc3995b9ea1c6ba36732407b2.tar.bz2
ayatana-indicator-sound-929d65e2b0df330cc3995b9ea1c6ba36732407b2.zip
Remove sound blocked timer when the service is shutdown
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index bfd4115..3bda52f 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -66,6 +66,11 @@ public class IndicatorSound.Service: Object {
sharedsettings.bind ("allow-amplified-volume", this, "allow-amplified-volume", SettingsBindFlags.GET);
}
+ ~Service() {
+ if (this.sound_was_blocked_timeout_id > 0)
+ Source.remove (this.sound_was_blocked_timeout_id);
+ }
+
void build_accountsservice () {
clear_acts_player();
this.accounts_service = null;