[Telepathy-commits] [telepathy-mission-control/master] Close the channel only when needed
Alberto Mardegan
alberto.mardegan at nokia.com
Tue Mar 17 01:00:00 PDT 2009
If the close_on_dispose flag is not set, channel must not be closed when
aborting either.
---
src/mcd-channel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index edab637..6bd367b 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -397,7 +397,8 @@ mcd_channel_abort (McdMission *mission)
}
/* Don't release the TpChannel, because we might still be asked to retrieve
* its properties or object path; instead, just close the channel */
- mcd_channel_close (channel);
+ if (priv->close_on_dispose)
+ mcd_channel_close (channel);
/* chain up with the parent */
MCD_MISSION_CLASS (mcd_channel_parent_class)->abort (mission);
--
1.5.6.5
More information about the telepathy-commits
mailing list