[telepathy-mission-control/master] Close the connection only if it's not NULL
Alberto Mardegan
alberto.mardegan at nokia.com
Wed Jul 1 01:09:04 PDT 2009
---
src/mcd-account.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mcd-account.c b/src/mcd-account.c
index b891676..584c943 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1694,7 +1694,8 @@ account_reconnect (McSvcAccount *service,
* (possibly with out of date parameters) but we haven't got a Connection
* back from the CM yet, the old parameters will still be used, I think
* (I can't quite make out what actually happens). */
- mcd_connection_close (self->priv->connection);
+ if (self->priv->connection)
+ mcd_connection_close (self->priv->connection);
_mcd_account_connection_begin (self);
/* FIXME: we shouldn't really return from this method until the
--
1.5.6.5
More information about the telepathy-commits
mailing list