From b286b0320e70ebd81dd30ddef143764975c7201b Mon Sep 17 00:00:00 2001 From: Jakub Pisarek <99591440+sgfn@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:46:15 +0200 Subject: [PATCH] Handle other retransmit case in DTLSTransport (#148) --- lib/ex_webrtc/dtls_transport.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ex_webrtc/dtls_transport.ex b/lib/ex_webrtc/dtls_transport.ex index b9db988..535652c 100644 --- a/lib/ex_webrtc/dtls_transport.ex +++ b/lib/ex_webrtc/dtls_transport.ex @@ -267,6 +267,13 @@ defmodule ExWebRTC.DTLSTransport do # packets to retransmit have to be the same as dtls_buffered_packets Process.send_after(self(), :dtls_timeout, timeout) + {:retransmit, _packets, timeout} -> + Logger.warning( + "DTLSTransport: Packets to retransmit differ from buffered local packets despite ICE not being connected" + ) + + Process.send_after(self(), :dtls_timeout, timeout) + :ok -> :ok end