Skip to content
Snippets Groups Projects
Commit 1689ace9 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

connectionmanager: avoid multiple request if multiple connectDevice

Before this patch, connectDevice() triggered a new ICE negotiation
until no TLS socket exists. This means, if when starting a
communication with a Device by triggering two connectDevice() like
a SIP channel and a data-transfer, two requests will be send.
Now, connectDevice will store new connectDevice() requests into
pendingCbs to only do one request at a time.
Note that the other side can ask a new request via the DHT, in this
case, behavior will not change, we accept all requests if
authorized and this must not interact with the pendingCbs_

Change-Id: I42a12458c364174e08531f568826da5b8348e08a
parent 8f35361a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment