From aee881c058971adcbe676d0d24d4924a0f38ef67 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 21 Mar 2014 14:31:40 -0500 Subject: Make sure to clear values after removing the source --- src/service.vala | 4 +++- src/volume-control.vala | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; } } -- cgit v1.2.3