fix SessionManager crash on MapSet/all_keys
This commit is contained in:
parent
73ae3ebe6e
commit
cfae3386c5
|
@ -76,7 +76,9 @@ defmodule Floof.SessionManager do
|
|||
)
|
||||
|
||||
{:ok, all_keys} = all_session_keys(state)
|
||||
added_dets_ents = for key <- MapSet.difference(all_keys, filter_keys), do: {key, subkey}
|
||||
|
||||
added_dets_ents =
|
||||
for key <- MapSet.difference(MapSet.new(all_keys), filter_keys), do: {key, subkey}
|
||||
|
||||
if not Enum.empty?(added_dets_ents) do
|
||||
# only store packets when we have any sessions
|
||||
|
|
Loading…
Reference in a new issue