start listening when we get session initiate. Fixes #7175

This commit is contained in:
Jefry Lagrange 2012-06-09 15:17:16 -04:00
parent 2b8890bf51
commit 3a5d6d2173
1 changed files with 2 additions and 0 deletions

View File

@ -117,9 +117,11 @@ class JingleFileTransfer(JingleContent):
gajim.nec.push_incoming_event(FileRequestReceivedEvent(None, gajim.nec.push_incoming_event(FileRequestReceivedEvent(None,
conn=self.session.connection, stanza=stanza, jingle_content=content, conn=self.session.connection, stanza=stanza, jingle_content=content,
FT_content=self)) FT_content=self))
self._listen_host()
# Delete this after file_props refactoring this shouldn't be necesary # Delete this after file_props refactoring this shouldn't be necesary
self.session.file_hash = self.file_props['hash'] self.session.file_hash = self.file_props['hash']
self.session.hash_algo = self.file_props['algo'] self.session.hash_algo = self.file_props['algo']
def __on_session_initiate_sent(self, stanza, content, error, action): def __on_session_initiate_sent(self, stanza, content, error, action):
# Calculate file_hash in a new thread # Calculate file_hash in a new thread
# if we haven't sent the hash already. # if we haven't sent the hash already.