start listening when we get session initiate. Fixes #7175
This commit is contained in:
parent
2b8890bf51
commit
3a5d6d2173
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue