static void
close_channel_and_unref (gpointer data)
{
  TpBaseChannel *chan = data;
  tp_base_channel_close (chan);
  g_object_unref (chan);
}
Ejemplo n.º 2
0
static void
gabble_auth_manager_close_all (GabbleAuthManager *self)
{
  DEBUG ("called");

  if (self->priv->channel != NULL)
    tp_base_channel_close ((TpBaseChannel *) self->priv->channel);

  /* that results in the signal-driven-object-clearing dance */
  g_assert (self->priv->channel == NULL);
}