empathy r2058 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2058 - trunk/libempathy
- Date: Tue, 6 Jan 2009 16:47:44 +0000 (UTC)
Author: xclaesse
Date: Tue Jan 6 16:47:44 2009
New Revision: 2058
URL: http://svn.gnome.org/viewvc/empathy?rev=2058&view=rev
Log:
Remember to check if source_id is already there when adding the
g_timeout.
Modified:
trunk/libempathy/empathy-account-manager.c
Modified: trunk/libempathy/empathy-account-manager.c
==============================================================================
--- trunk/libempathy/empathy-account-manager.c (original)
+++ trunk/libempathy/empathy-account-manager.c Tue Jan 6 16:47:44 2009
@@ -285,6 +285,11 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]