aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ranch_conns_sup.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ranch_conns_sup.erl b/src/ranch_conns_sup.erl
index 396f5fe..e16df69 100644
--- a/src/ranch_conns_sup.erl
+++ b/src/ranch_conns_sup.erl
@@ -179,7 +179,11 @@ loop(State=#state{parent=Parent, ref=Ref, conn_type=ConnType,
loop(State, CurConns, NbChildren, Sleepers);
{'$gen_call', {To, Tag}, _} ->
To ! {Tag, {error, ?MODULE}},
- loop(State, CurConns, NbChildren, Sleepers)
+ loop(State, CurConns, NbChildren, Sleepers);
+ Msg ->
+ error_logger:error_msg(
+ "Ranch listener ~p received unexpected message ~p~n",
+ [Ref, Msg])
end.
system_continue(_, _, {State, CurConns, NbChildren, Sleepers}) ->