Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0260.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 |
---|---|
289 if our_candidate: | 289 if our_candidate: |
290 d = self._s5b.connectCandidate( | 290 d = self._s5b.connectCandidate( |
291 client, choosed_candidate, transport_data["session_hash"] | 291 client, choosed_candidate, transport_data["session_hash"] |
292 ) | 292 ) |
293 d.addCallback( | 293 d.addCallback( |
294 lambda dummy: choosed_candidate.activate( | 294 lambda __: choosed_candidate.activate( |
295 transport_data["sid"], session["peer_jid"], client | 295 transport_data["sid"], session["peer_jid"], client |
296 ) | 296 ) |
297 ) | 297 ) |
298 args = [client, choosed_candidate, session, content_name] | 298 args = [client, choosed_candidate, session, content_name] |
299 d.addCallbacks( | 299 d.addCallbacks( |
306 d = defer.succeed(None) | 306 d = defer.succeed(None) |
307 | 307 |
308 if content_data["senders"] == session["role"]: | 308 if content_data["senders"] == session["role"]: |
309 # we can now start the stream transfer (or start it after proxy activation) | 309 # we can now start the stream transfer (or start it after proxy activation) |
310 d.addCallback( | 310 d.addCallback( |
311 lambda dummy: choosed_candidate.startTransfer( | 311 lambda __: choosed_candidate.startTransfer( |
312 transport_data["session_hash"] | 312 transport_data["session_hash"] |
313 ) | 313 ) |
314 ) | 314 ) |
315 d.addErrback(self._startEb, session, content_name, client) | 315 d.addErrback(self._startEb, session, content_name, client) |
316 | 316 |