aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--src/service.vala4
-rw-r--r--src/volume-control.vala1
2 files changed, 4 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 () {
diff --git a/src/volume-control.vala b/src/volume-control.vala
index 8f21b60..03cac0b 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -56,6 +56,7 @@ public class VolumeControl : Object
{
if (_reconnect_timer != 0) {
Source.remove (_reconnect_timer);
+ _reconnect_timer = 0;
}
}