[gnome-session] gsm: Remove a timeout when ending a phase
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] gsm: Remove a timeout when ending a phase
- Date: Mon, 29 Nov 2010 22:26:27 +0000 (UTC)
commit e8ca44654d728e1d1abb2da553aa7b2e6259d0b1
Author: Vincent Untz <vuntz gnome org>
Date: Mon Nov 29 23:26:22 2010 +0100
gsm: Remove a timeout when ending a phase
This is just to be consistent with what we do when we start a phase.
gnome-session/gsm-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 2b4ad93..c215fed 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -467,6 +467,10 @@ end_phase (GsmManager *manager)
g_slist_free (manager->priv->next_query_clients);
manager->priv->next_query_clients = NULL;
+ if (manager->priv->query_timeout_id > 0) {
+ g_source_remove (manager->priv->query_timeout_id);
+ manager->priv->query_timeout_id = 0;
+ }
if (manager->priv->phase_timeout_id > 0) {
g_source_remove (manager->priv->phase_timeout_id);
manager->priv->phase_timeout_id = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]