aboutsummaryrefslogtreecommitdiff
path: root/src/mod_ping.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_ping.erl')
-rw-r--r--src/mod_ping.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mod_ping.erl b/src/mod_ping.erl
index e0e2aec6d..1d926708b 100644
--- a/src/mod_ping.erl
+++ b/src/mod_ping.erl
@@ -107,8 +107,9 @@ terminate(_Reason, #state{host = Host}) ->
handle_call(stop, _From, State) ->
{stop, normal, ok, State};
-handle_call(_Req, _From, State) ->
- {reply, {error, badarg}, State}.
+handle_call(Request, From, State) ->
+ ?WARNING_MSG("Unexpected call from ~p: ~p", [From, Request]),
+ {noreply, State}.
handle_cast({reload, Host, NewOpts, _OldOpts},
#state{timers = Timers} = OldState) ->
@@ -162,7 +163,9 @@ handle_info({timeout, _TRef, {ping, JID}}, State) ->
Timers = add_timer(JID, State#state.ping_interval,
State#state.timers),
{noreply, State#state{timers = Timers}};
-handle_info(_Info, State) -> {noreply, State}.
+handle_info(Info, State) ->
+ ?WARNING_MSG("Unexpected info: ~p", [Info]),
+ {noreply, State}.
code_change(_OldVsn, State, _Extra) -> {ok, State}.