aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}