fix(webhook): consider `{shutdown, closed}` return as recoverable

This commit is contained in:
Thales Macedo Garitezi 2023-05-02 13:11:36 -03:00
parent 654d274039
commit f6da18dc1b
1 changed files with 2 additions and 1 deletions

View File

@ -585,7 +585,8 @@ reply_delegator(ReplyFunAndArgs, Result) ->
Reason =:= econnrefused;
Reason =:= timeout;
Reason =:= normal;
Reason =:= {shutdown, normal}
Reason =:= {shutdown, normal};
Reason =:= {shutdown, closed}
->
Result1 = {error, {recoverable_error, Reason}},
emqx_resource:apply_reply_fun(ReplyFunAndArgs, Result1);