]> git.0d.be Git - empathy.git/commitdiff
Do not stop and restart ext_away_timeout when already running.
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 14 Aug 2008 07:54:17 +0000 (07:54 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 14 Aug 2008 07:54:17 +0000 (07:54 +0000)
svn path=/trunk/; revision=1332

libempathy/empathy-idle.c

index 700c3521019ecdb39a96354ba3299aebe6c45a8a..b1d1543a4d431c715b4bf2654bb175c399f49d3a 100644 (file)
@@ -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);