aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-08-14 15:54:17 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-08-14 15:54:17 +0800
commitb49251eb4d9806d9c370ad1a64b107eaaf8284e2 (patch)
treeea6b913416eb7b718c109055ae315bbcc0261902 /libempathy
parentf35b1f02dae7791398b33fac0fe9088333fbd5d4 (diff)
downloadgsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.tar
gsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.tar.gz
gsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.tar.bz2
gsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.tar.lz
gsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.tar.xz
gsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.tar.zst
gsoc2013-empathy-b49251eb4d9806d9c370ad1a64b107eaaf8284e2.zip
Do not stop and restart ext_away_timeout when already running.
svn path=/trunk/; revision=1332
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-idle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 700c35210..b1d1543a4 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -113,7 +113,9 @@ idle_ext_away_start (EmpathyIdle *idle)
priv = GET_PRIV (idle);
- idle_ext_away_stop (idle);
+ if (priv->ext_away_timeout != 0) {
+ return;
+ }
priv->ext_away_timeout = g_timeout_add_seconds (EXT_AWAY_TIME,
(GSourceFunc) idle_ext_away_cb,
idle);