Skip to content
Permalink
Browse files
Use cast to send update_config to ioq2
  • Loading branch information
iilyak committed Feb 19, 2019
1 parent 89fe01f commit 8dfe69544f3d209a9f6ae23f328acc37eb457939
Showing 1 changed file with 2 additions and 2 deletions.
@@ -59,7 +59,7 @@ handle_config_change("ioq", _Key, _Val, _Persist, St) ->
{ok, St};
handle_config_change("ioq2" ++ _, _Key, _Val, _Persist, St) ->
lists:foreach(fun({_Id, Pid}) ->
gen_server:call(Pid, update_config)
gen_server:cast(Pid, update_config)
end, processes(ioq2)),
{ok, St};
handle_config_change(_Sec, _Key, _Val, _Persist, St) ->
@@ -69,7 +69,7 @@ handle_config_terminate(_Server, _Reason, _State) ->
gen_server:cast(ioq_server, update_config),
spawn(fun() ->
lists:foreach(fun({_Id, Pid}) ->
gen_server:call(Pid, update_config)
gen_server:cast(Pid, update_config)
end, processes(ioq2))
end),
ok.

0 comments on commit 8dfe695

Please sign in to comment.