From 31dfbfd27cdb8f7d8dbc887b1ce53806b94d67ee Mon Sep 17 00:00:00 2001 From: Bartosz Zurkowski Date: Tue, 28 Mar 2017 00:38:22 +0200 Subject: [PATCH] Wait infinitely for fetching agents from population --- src/mas_population.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mas_population.erl b/src/mas_population.erl index 9add75e..956d397 100644 --- a/src/mas_population.erl +++ b/src/mas_population.erl @@ -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}).