Browse Source

fix: start sup

DDDHuang 4 years atrás
parent
commit
b13ae50bed
1 changed files with 2 additions and 1 deletions
  1. 2 1
      apps/emqx_auto_subscribe/src/emqx_auto_subscribe_app.erl

+ 2 - 1
apps/emqx_auto_subscribe/src/emqx_auto_subscribe_app.erl

@@ -21,8 +21,9 @@
 -export([start/2, stop/1]).
 
 start(_StartType, _StartArgs) ->
+    {ok, Sup} = emqx_auto_subscribe_sup:start_link(),
     ok = emqx_auto_subscribe:load(),
-    emqx_auto_subscribe_sup:start_link().
+    {ok, Sup}.
 
 stop(_State) ->
     ok.