]> git.0d.be Git - empathy.git/commitdiff
Remember to check if source_id is already there when adding the
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 6 Jan 2009 16:47:44 +0000 (16:47 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 6 Jan 2009 16:47:44 +0000 (16:47 +0000)
g_timeout.

svn path=/trunk/; revision=2058

libempathy/empathy-account-manager.c

index 050144aada3b50436a58b680c074c130c5ce1997..5859d26c06a98e4b02e06b08becf6a7a4964278a 100644 (file)
@@ -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);