fix(emqx_connection): do not raise an exception for normal shutdown
This commit is contained in:
parent
1692a16778
commit
98a72d40ce
|
@ -680,6 +680,12 @@ maybe_raise_exception(#{
|
||||||
stacktrace := Stacktrace
|
stacktrace := Stacktrace
|
||||||
}) ->
|
}) ->
|
||||||
erlang:raise(Exception, Context, Stacktrace);
|
erlang:raise(Exception, Context, Stacktrace);
|
||||||
|
maybe_raise_exception({shutdown, normal}) ->
|
||||||
|
ok;
|
||||||
|
maybe_raise_exception(normal) ->
|
||||||
|
ok;
|
||||||
|
maybe_raise_exception(shutdown) ->
|
||||||
|
ok;
|
||||||
maybe_raise_exception(Reason) ->
|
maybe_raise_exception(Reason) ->
|
||||||
exit(Reason).
|
exit(Reason).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue