@@ -1,7 +1,7 @@
{application, emqttd,
[
{description, "Erlang MQTT Broker"},
- {vsn, "0.10.0"},
+ {vsn, "0.10.1"},
{modules, []},
{registered, []},
{applications, [kernel,
@@ -134,10 +134,7 @@ worker_spec(Name, Opts) ->
%% close all listeners first...
prep_stop(State) ->
- stop_listeners(),
- timer:sleep(2),
- emqttd_plugins:unload(),
+ stop_listeners(),
State.
stop_listeners() ->
@@ -79,6 +79,7 @@ cluster([SNode]) ->
pong ->
case emqttd:is_running(Node) of
true ->
+ emqttd_plugins:unload(),
application:stop(emqttd),
application:stop(esockd),
application:stop(gproc),