aboutsummaryrefslogtreecommitdiff
path: root/plugins/ice/src/transport_parameters.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2021-04-12 18:05:08 +0200
committerMarvin W <git@larma.de>2021-04-12 18:05:08 +0200
commitd19a01d5f2129612827bf25a94f1977320ba7b1f (patch)
treecabef2c580f9283257e694150c1e58f031a82e80 /plugins/ice/src/transport_parameters.vala
parentfe160d94ba8a08a806dc755d918dc3de0a645d7c (diff)
downloaddino-d19a01d5f2129612827bf25a94f1977320ba7b1f.tar.gz
dino-d19a01d5f2129612827bf25a94f1977320ba7b1f.zip
Handle DTLS edge-cases
Diffstat (limited to 'plugins/ice/src/transport_parameters.vala')
-rw-r--r--plugins/ice/src/transport_parameters.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ice/src/transport_parameters.vala b/plugins/ice/src/transport_parameters.vala
index 8766e744..52451fcf 100644
--- a/plugins/ice/src/transport_parameters.vala
+++ b/plugins/ice/src/transport_parameters.vala
@@ -156,6 +156,9 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport
if (peer_setup == "passive") {
dtls_srtp_handler.mode = DtlsSrtp.Mode.CLIENT;
dtls_srtp_handler.stop_dtls_connection();
+ dtls_srtp_handler.setup_dtls_connection.begin((_, res) => {
+ this.content.encryption = dtls_srtp_handler.setup_dtls_connection.end(res) ?? this.content.encryption;
+ });
}
} else {
dtls_srtp_handler = null;