[Telepathy-commits] [telepathy-salut/master] Make sure the connection is taken by the connection manager when in use.

Jonny Lamb jonny.lamb at collabora.co.uk
Fri Nov 21 03:46:14 PST 2008


20080730191359-8ed0e-0ca82e9e3d95ffa8abfad14782da801e2a807324.gz
---
 src/salut-file-channel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/salut-file-channel.c b/src/salut-file-channel.c
index 5c40664..1038e1b 100644
--- a/src/salut-file-channel.c
+++ b/src/salut-file-channel.c
@@ -814,6 +814,7 @@ xmpp_connection_manager_new_connection_cb (SalutXmppConnectionManager *mgr,
   SalutFileChannel *channel = user_data;
 
   channel->priv->xmpp_connection = g_object_ref (connection);
+  salut_xmpp_connection_manager_take_connection (mgr, connection);
   g_signal_handlers_disconnect_by_func (mgr,
                                         xmpp_connection_manager_new_connection_cb, user_data);
   send_file_offer (channel);
@@ -880,6 +881,7 @@ salut_file_channel_received_file_offer (SalutFileChannel *self,
 {
   GibberFileTransfer *ft;
 
+  salut_xmpp_connection_manager_take_connection (self->priv->xmpp_connection_manager , conn);
   ft = gibber_file_transfer_new_from_stanza (stanza, conn);
   g_signal_connect (ft, "error", G_CALLBACK (error_cb), self);
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list