aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-21 14:31:40 -0500
committerTed Gould <ted@gould.cx>2014-03-21 14:31:40 -0500
commitaee881c058971adcbe676d0d24d4924a0f38ef67 (patch)
treee6b480fe3e1e339909cd5d73f333066a9db7fd44 /src/service.vala
parent929d65e2b0df330cc3995b9ea1c6ba36732407b2 (diff)
downloadayatana-indicator-sound-aee881c058971adcbe676d0d24d4924a0f38ef67.tar.gz
ayatana-indicator-sound-aee881c058971adcbe676d0d24d4924a0f38ef67.tar.bz2
ayatana-indicator-sound-aee881c058971adcbe676d0d24d4924a0f38ef67.zip
Make sure to clear values after removing the source
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala
index 3bda52f..f6c5f01 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -67,8 +67,10 @@ public class IndicatorSound.Service: Object {
}
~Service() {
- if (this.sound_was_blocked_timeout_id > 0)
+ if (this.sound_was_blocked_timeout_id > 0) {
Source.remove (this.sound_was_blocked_timeout_id);
+ this.sound_was_blocked_timeout_id = 0;
+ }
}
void build_accountsservice () {