[Telepathy-commits] [telepathy-mission-control/master] Properly close the connection
Alberto Mardegan
alberto.mardegan at nokia.com
Fri Jan 16 04:26:11 PST 2009
When a transport dies, don't modify the requested presence. Instead, just
disconnect the connection.
---
src/mcd-master.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/mcd-master.c b/src/mcd-master.c
index 9e3ae59..3047f20 100644
--- a/src/mcd-master.c
+++ b/src/mcd-master.c
@@ -195,11 +195,12 @@ disconnect_account_transport (gpointer key, gpointer value, gpointer userdata)
if (td->transport == get_account_transport (account))
{
+ McdConnection *connection;
+
g_debug ("%s: account %s must disconnect",
G_STRFUNC, mcd_account_get_unique_name (account));
- mcd_account_request_presence (account,
- TP_CONNECTION_PRESENCE_TYPE_OFFLINE,
- "offline", "addio");
+ connection = mcd_account_get_connection (account);
+ mcd_connection_close (connection);
set_account_transport (account, NULL);
}
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list