From b717b34a9d03493d611d3f81728e15ba3dbaa8c4 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 2 May 2008 16:21:33 +0000 Subject: In tp_base_connection_finish_shutdown, make assertions about our state (part of fd.o #15796) 20080502162133-53eee-5188baca9360bec9770a427b8f7f0bf07453384d.gz --- telepathy-glib/base-connection.c | 3 +++ 1 file changed, 3 insertions(+) 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++) -- cgit v1.2.3