Merge pull request #7622 from zhongwencool/config-handler-shutdown

fix: can't shutdown emqx_config_handler process.
This commit is contained in:
zhongwencool 2022-04-15 08:49:47 +08:00 committed by GitHub
commit 0587318c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ handle_cast(_Msg, State) ->
handle_info(_Info, State) ->
{noreply, State}.
%% application shutdown, we can't call application_controller here.
terminate(shutdown, _) ->
ok;
terminate(_Reason, #{handlers := Handlers}) ->
save_handlers(Handlers),
ok.