Browse Source

Don't report error when protocol exits with reason shutdown

Exiting with reason `shutdown` or `{shutdown, term()}` is not an error.
James Fish 11 years ago
parent
commit
767109b1c3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/ranch_conns_sup.erl

+ 4 - 0
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 "