summaryrefslogtreecommitdiff
path: root/src/gs-watcher-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-watcher-x11.c')
-rw-r--r--src/gs-watcher-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gs-watcher-x11.c b/src/gs-watcher-x11.c
index 7b5b5c5..d740cfa 100644
--- a/src/gs-watcher-x11.c
+++ b/src/gs-watcher-x11.c
@@ -392,6 +392,7 @@ set_status (GSWatcher *watcher,
if (watcher->priv->idle_id > 0)
{
g_source_remove (watcher->priv->idle_id);
+ watcher->priv->idle_id = 0;
}
res = _gs_watcher_set_session_idle (watcher, FALSE);
res = _gs_watcher_set_session_idle_notice (watcher, FALSE);
@@ -566,6 +567,7 @@ gs_watcher_finalize (GObject *object)
if (watcher->priv->idle_id > 0)
{
g_source_remove (watcher->priv->idle_id);
+ watcher->priv->idle_id = 0;
}
watcher->priv->active = FALSE;