It doesn't hurt to always try to remove it and prevent us of keeping an
invalidated or disposed object around if something weird happens.
connection = tp_channel_borrow_connection (TP_CHANNEL (proxy));
+ priv->channels = g_list_remove (priv->channels, proxy);
+
cd = g_hash_table_lookup (priv->connections, connection);
/* Connection itself invalidated? */
if (cd == NULL)
g_hash_table_remove (cd->dispatched_channels, object_path);
g_hash_table_remove (cd->dispatching_channels, object_path);
-
- priv->channels = g_list_remove (priv->channels, proxy);
}
static void