summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-05-02 16:21:33 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-05-02 16:21:33 +0000
commit69e93b7371c93d0a16839d92ed830bb0c4a40929 (patch)
tree1bfc116d45f9c63ae3475f4b5c823fd458ff91b7
parenta326065661c2a57e812c6493d787e6c01d2ecebc (diff)
In tp_base_connection_finish_shutdown, make assertions about our state (part of fd.o #15796)telepathy-glib_0.7.7_libtool_cra__10010telepathy-glib-0.7.7
-rw-r--r--telepathy-glib/base-connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 721914491..7a8ac6913 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -1444,6 +1444,9 @@ void tp_base_connection_finish_shutdown (TpBaseConnection *self)
GPtrArray *contexts = self->priv->disconnect_requests;
guint i;
+ g_return_if_fail (self->status == TP_CONNECTION_STATUS_DISCONNECTED);
+ g_return_if_fail (contexts != NULL);
+
self->priv->disconnect_requests = NULL;
for (i = 0; i < contexts->len; i++)