]> granicus.if.org Git - ejabberd/commitdiff
Avoid badfun in multicast/6
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 7 Dec 2018 18:34:49 +0000 (21:34 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 7 Dec 2018 18:34:49 +0000 (21:34 +0300)
src/mod_mix.erl

index 641d4e3ab4eeeb5a4a5c60cc5fdd0e0f88e8aa2f..5625beac17ddfa902770a9409a4424df701490f2 100644 (file)
@@ -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) ->