From 2181bd7850f4ea2783fa11dca609ab231b7a0c86 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Thu, 1 Dec 2016 19:12:45 +0800 Subject: [PATCH] unload --- src/emqttd.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/emqttd.erl b/src/emqttd.erl index 587a46306..8128d0789 100644 --- a/src/emqttd.erl +++ b/src/emqttd.erl @@ -14,7 +14,7 @@ %% limitations under the License. %%-------------------------------------------------------------------- -%% Facade Module for The EMQTT Broker +%% Facade Module for The EMQ Broker -module(emqttd). @@ -59,9 +59,7 @@ start() -> application:start(?APP). %% @doc Stop emqttd application. -spec(stop() -> ok | {error, any()}). -stop() -> - emqttd_plugins:unload(), - init:stop(). +stop() -> application:stop(?APP). %% @doc Environment -spec(env(Key:: atom()) -> {ok, any()} | undefined).