Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ex_ice/ice_agent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ defmodule ExICE.ICEAgent do
* `packets_received` - data packets received. This does not include connectivity checks.
* `candidate_pairs` - list of current candidate pairs. Changes after doing an ICE restart.
"""
@spec get_stats(pid()) :: %{
@spec get_stats(pid(), timeout()) :: %{
bytes_sent: non_neg_integer(),
bytes_received: non_neg_integer(),
packets_sent: non_neg_integer(),
Expand All @@ -288,8 +288,8 @@ defmodule ExICE.ICEAgent do
remote_candidates: [Candidate.t()],
candidate_pairs: [CandidatePair.t()]
}
def get_stats(ice_agent) do
GenServer.call(ice_agent, :get_stats)
def get_stats(ice_agent, timeout \\ 5000) do
GenServer.call(ice_agent, :get_stats, timeout)
end

@doc """
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule ExICE.MixProject do
use Mix.Project

@version "0.16.0"
@version "0.16.1"
@source_url "https://github.com/elixir-webrtc/ex_ice"

def project do
Expand Down
Loading