[telepathy-mission-control/master] Release TP connection before aborting
Alberto Mardegan
alberto.mardegan at nokia.com
Tue May 5 02:08:48 PDT 2009
Aborting means that the McdAccount will immediately release its reference to
McdConnection and therefore will miss the status-changed signal that
McdConnection will emit when disposing. Therefore, disconnect the TpConnection
when mcd_connection_close() is called, so that the signals will be emitted
immediately.
---
src/mcd-connection.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 36a832b..76701bb 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -2444,6 +2444,7 @@ mcd_connection_close (McdConnection *connection)
McdConnectionPrivate *priv = MCD_CONNECTION_PRIV (connection);
priv->abort_reason = TP_CONNECTION_STATUS_REASON_REQUESTED;
+ _mcd_connection_release_tp_connection (connection);
mcd_mission_abort (MCD_MISSION (connection));
}
--
1.5.6.5
More information about the telepathy-commits
mailing list