From 767109b1c371448baf8ad01d77b71f4ea8c3f858 Mon Sep 17 00:00:00 2001 From: James Fish Date: Wed, 28 Aug 2013 20:55:11 +0100 Subject: Don't report error when protocol exits with reason shutdown Exiting with reason `shutdown` or `{shutdown, term()}` is not an error. --- src/ranch_conns_sup.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ranch_conns_sup.erl') diff --git a/src/ranch_conns_sup.erl b/src/ranch_conns_sup.erl index e16df69..c6b11ec 100644 --- a/src/ranch_conns_sup.erl +++ b/src/ranch_conns_sup.erl @@ -200,6 +200,10 @@ system_code_change(Misc, _, _, _) -> %% support printable strings. report_error(_, _, normal) -> ok; +report_error(_, _, shutdown) -> + ok; +report_error(_, _, {shutdown, _}) -> + ok; report_error(Ref, Pid, Reason) -> error_logger:error_msg( "Ranch listener ~p had connection process ~p " -- cgit v1.2.3