From 3a5d6d2173d14b7589a88c841ab43aad8d973b46 Mon Sep 17 00:00:00 2001 From: Jefry Lagrange <jefry.reyes@gmail.com> Date: Sat, 9 Jun 2012 15:17:16 -0400 Subject: [PATCH] start listening when we get session initiate. Fixes #7175 --- src/common/jingle_ft.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/jingle_ft.py b/src/common/jingle_ft.py index bd748945bb..37944f3c0c 100644 --- a/src/common/jingle_ft.py +++ b/src/common/jingle_ft.py @@ -117,9 +117,11 @@ class JingleFileTransfer(JingleContent): gajim.nec.push_incoming_event(FileRequestReceivedEvent(None, conn=self.session.connection, stanza=stanza, jingle_content=content, FT_content=self)) + self._listen_host() # Delete this after file_props refactoring this shouldn't be necesary self.session.file_hash = self.file_props['hash'] self.session.hash_algo = self.file_props['algo'] + def __on_session_initiate_sent(self, stanza, content, error, action): # Calculate file_hash in a new thread # if we haven't sent the hash already. -- GitLab