Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0234.py @ 2765:378188abe941
misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Jan 2019 11:13:15 +0100 |
parents | 56f94936df1e |
children | 003b8b4b56a7 |
comparison
equal
deleted
inserted
replaced
2764:92af49cde255 | 2765:378188abe941 |
---|---|
757 content_data["last_try_timer"].cancel() | 757 content_data["last_try_timer"].cancel() |
758 except (KeyError, internet_error.AlreadyCalled): | 758 except (KeyError, internet_error.AlreadyCalled): |
759 pass | 759 pass |
760 return True | 760 return True |
761 | 761 |
762 def _finishedCb(self, dummy, client, session, content_name, content_data): | 762 def _finishedCb(self, __, client, session, content_name, content_data): |
763 log.info(u"File transfer terminated") | 763 log.info(u"File transfer terminated") |
764 if content_data["senders"] != session["role"]: | 764 if content_data["senders"] != session["role"]: |
765 # we terminate the session only if we are the receiver, | 765 # we terminate the session only if we are the receiver, |
766 # as recommanded in XEP-0234 §2 (after example 6) | 766 # as recommanded in XEP-0234 §2 (after example 6) |
767 content_data["transfer_finished"] = True | 767 content_data["transfer_finished"] = True |