webrtcsink: race condition between on_remote_description_set & handle_ice
In on_remote_description_set
, the session is removed from the sessions list
and the state
lock is temporarily released before calling connect_input_stream
to avoid a deadlock. A concurrent handle_ice
for the same session
can lock the state
and not find the removed session in the list, causing the
candidate to be ignored.