aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:47:44 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:47:44 +0800
commit8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e (patch)
tree3134643616203f85fc37ee099387157cbbd29a22 /libempathy
parent2e644a3a164283b79fcfc4d35b3639da9133119a (diff)
downloadgsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.tar
gsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.tar.gz
gsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.tar.bz2
gsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.tar.lz
gsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.tar.xz
gsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.tar.zst
gsoc2013-empathy-8d98513e9b2d7ea2c3afbe45bde4ecb6babc545e.zip
Remember to check if source_id is already there when adding the
g_timeout. svn path=/trunk/; revision=2058
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account-manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 050144aad..5859d26c0 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -285,6 +285,11 @@ account_status_changed_cb (MissionControl *mc,
if (old_c == TP_CONNECTION_STATUS_CONNECTING &&
connection == TP_CONNECTION_STATUS_CONNECTED) {
+ if (data->source_id > 0) {
+ g_source_remove (data->source_id);
+ data->source_id = 0;
+ }
+
data->source_id = g_timeout_add_seconds (10,
remove_data_timeout,
data);