Skip to content

Commit 73e1f92

Browse files
committed
Close candidate pair on conn check send error
1 parent 9c2108f commit 73e1f92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ex_ice/priv/ice_agent.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,8 @@ defmodule ExICE.Priv.ICEAgent do
30133013
pair = %CandidatePair{
30143014
pair
30153015
| packets_discarded_on_send: pair.packets_discarded_on_send + 1,
3016-
bytes_discarded_on_send: pair.bytes_discarded_on_send + byte_size(raw_req)
3016+
bytes_discarded_on_send: pair.bytes_discarded_on_send + byte_size(raw_req),
3017+
state: :failed
30173018
}
30183019

30193020
put_in(ice_agent.checklist[pair.id], pair)

0 commit comments

Comments
 (0)