From: Evgeniy Khramtsov Date: Tue, 4 Apr 2017 14:14:24 +0000 (+0300) Subject: Don't log warning on successful ping reply X-Git-Tag: 17.04~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5b0cd1793887541a8974bea63d13f2f1c78bdd8;p=ejabberd Don't log warning on successful ping reply --- diff --git a/src/mod_ping.erl b/src/mod_ping.erl index 1164bf44a..2e39e8834 100644 --- a/src/mod_ping.erl +++ b/src/mod_ping.erl @@ -152,6 +152,8 @@ handle_cast({iq_pong, JID, timeout}, State) -> _ -> ok end, {noreply, State#state{timers = Timers}}; +handle_cast({iq_pong, _JID, _}, State) -> + {noreply, State}; handle_cast(Msg, State) -> ?WARNING_MSG("unexpected cast: ~p", [Msg]), {noreply, State}.