plugin XEP-0234: log file transfer "terminated" instead of "completed", as the file may not be complete (check is done after)

This commit is contained in:
Goffi 2015-12-17 22:02:52 +01:00
commit 3c71aef8af

View file

@ -306,7 +306,7 @@ class XEP_0234(object):
return True
def _finishedCb(self, dummy, session, content_name, content_data, profile):
log.info(u"File transfer completed")
log.info(u"File transfer terminated")
if content_data['senders'] != session['role']:
# we terminate the session only if we are the receiver,
# as recommanded in XEP-0234 §2 (after example 6)