Merge pull request #7012 from lafirest/fix/trap_exit

fix(emqx_slow_subs): add trap exit flag
This commit is contained in:
lafirest 2022-02-15 17:38:21 +08:00 committed by GitHub
commit 1dbfe0dce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ init_tab() ->
%%--------------------------------------------------------------------
init([]) ->
erlang:process_flag(trap_exit, true),
emqx_conf:add_handler([slow_subs], ?MODULE),
InitState = #{enable => false,