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
commitb717b34a9d03493d611d3f81728e15ba3dbaa8c4 (patch)
tree2685a322998d06adf77961cf16b9d2a56b07817d
parente3a5d22f343a934e01cb3caaa1d36c808084f510 (diff)
In tp_base_connection_finish_shutdown, make assertions about our state (part of fd.o #15796)
-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 8e8c00479..286b28a3e 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -1442,6 +1442,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++)