aboutsummaryrefslogtreecommitdiff
path: root/src/accounts-service-user.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-20 15:58:44 -0500
committerTed Gould <ted@gould.cx>2014-03-20 15:58:44 -0500
commit6ebc8b959ae45538e04d6831c94779b5c0c3d58e (patch)
treea00f37b2e3bbcd6cbce1d1972d33d5223c938ee2 /src/accounts-service-user.vala
parent61d3328c1a41b3704db9e96c8f9a27b42e649aca (diff)
downloadayatana-indicator-sound-6ebc8b959ae45538e04d6831c94779b5c0c3d58e.tar.gz
ayatana-indicator-sound-6ebc8b959ae45538e04d6831c94779b5c0c3d58e.tar.bz2
ayatana-indicator-sound-6ebc8b959ae45538e04d6831c94779b5c0c3d58e.zip
Backport the timer patch
Diffstat (limited to 'src/accounts-service-user.vala')
-rw-r--r--src/accounts-service-user.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index e18e20f..92c972d 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -115,6 +115,11 @@ public class AccountsServiceUser : Object {
~AccountsServiceUser () {
this.player = null;
+
+ if (this.timer != 0) {
+ GLib.Source.remove(this.timer);
+ this.timer = 0;
+ }
}
void new_proxy (GLib.Object? obj, AsyncResult res) {