unregister_mod when stopped

This commit is contained in:
Feng Lee 2015-04-22 16:58:24 +08:00
parent bb2940cfb6
commit 6c947dff1d
1 changed files with 2 additions and 0 deletions

View File

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