Przeglądaj źródła

unregister_mod when stopped

Feng Lee 11 lat temu
rodzic
commit
6c947dff1d

+ 2 - 0
plugins/emqttd_plugin_demo/src/emqttd_plugin_demo_app.erl

@@ -16,4 +16,6 @@ start(_StartType, _StartArgs) ->
     {ok, Sup}.
 
 stop(_State) ->
+    emqttd_access_control:unregister_mod(auth, emqttd_plugin_demo_auth),
+    emqttd_access_control:unregister_mod(acl, emqttd_plugin_demo_acl),
     ok.