diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-08-14 15:54:17 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-08-14 15:54:17 +0800 |
commit | 279d94cccc74028c03e65afc16c423b8cebaff98 (patch) | |
tree | ea6b913416eb7b718c109055ae315bbcc0261902 /libempathy/empathy-idle.c | |
parent | 4833cf1da50660748d7461e22208b7c88e2ba213 (diff) | |
download | gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.tar gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.tar.gz gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.tar.bz2 gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.tar.lz gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.tar.xz gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.tar.zst gsoc2013-empathy-279d94cccc74028c03e65afc16c423b8cebaff98.zip |
Do not stop and restart ext_away_timeout when already running.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1332 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy/empathy-idle.c')
-rw-r--r-- | libempathy/empathy-idle.c | 4 |
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); |