temporary

This commit is contained in:
Feng Lee 2015-08-05 15:39:29 +08:00
parent 1a64e4e373
commit 7ba5772264
2 changed files with 4 additions and 3 deletions

View File

@ -213,8 +213,9 @@ read_loaded() ->
write_loaded(AppNames) -> write_loaded(AppNames) ->
case file:open(env(loaded_file), [binary, write]) of case file:open(env(loaded_file), [binary, write]) of
{ok, Fd} -> {ok, Fd} ->
Line = list_to_binary(io_lib:format("~w.~n", [AppNames])), lists:foreach(fun(Name) ->
file:write(Fd, Line); file:write(Fd, iolist_to_binary(io_lib:format("~s.~n", [Name])))
end, AppNames);
{error, Error} -> {error, Error} ->
{error, Error} {error, Error}
end. end.

View File

@ -57,6 +57,6 @@ start_session(CleanSess, ClientId, ClientPid) ->
init([]) -> init([]) ->
{ok, {{simple_one_for_one, 10, 10}, {ok, {{simple_one_for_one, 10, 10},
[{session, {emqttd_session, start_link, []}, [{session, {emqttd_session, start_link, []},
transient, 10000, worker, [emqttd_session]}]}}. temporary, 10000, worker, [emqttd_session]}]}}.