Skip to content

Commit

Permalink
Wait infinitely for fetching agents from population
Browse files Browse the repository at this point in the history
  • Loading branch information
bzurkowski committed Mar 27, 2017
1 parent a615bfd commit 31dfbfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mas_population.erl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ start_link(SP, Config) ->
gen_server:start_link(?MODULE, {SP, Config}, []).

get_agents(Pid) ->
gen_server:call(Pid, get_agents).
% Waiting infinitely for response probably not a very good idea. Treat as
% temporary solution.
gen_server:call(Pid, get_agents, infinity).

add_agents(Pid, Agents) ->
gen_server:cast(Pid, {add_agents, Agents}).
Expand Down

0 comments on commit 31dfbfd

Please sign in to comment.