From a5ac1d15e75468e1d8e8d8157b531ebac52798ee Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Fri, 7 Dec 2018 21:34:49 +0300 Subject: [PATCH] Avoid badfun in multicast/6 --- src/mod_mix.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod_mix.erl b/src/mod_mix.erl index 641d4e3ab..5625beac1 100644 --- a/src/mod_mix.erl +++ b/src/mod_mix.erl @@ -578,7 +578,8 @@ notify_participant_left(Mod, LServer, To, ID) -> Msg = #message{from = jid:remove_resource(To), id = p1_rand:get_string(), sub_els = [Event]}, - multicast(Mod, LServer, Chan, Host, ?NS_MIX_NODES_PARTICIPANTS, Msg). + multicast(Mod, LServer, Chan, Host, ?NS_MIX_NODES_PARTICIPANTS, + fun(_) -> Msg end). -spec make_id(jid(), binary()) -> binary(). make_id(JID, Key) -> -- 2.40.0