summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvans163 <vans_163@yahoo.com>2016-09-01 13:31:23 -0400
committerGitHub <noreply@github.com>2016-09-01 13:31:23 -0400
commitd74cd14065bacf786bf4a463aa47715e80b412ec (patch)
treeb9f0465db31dbe84c2aa2405fc04d20b791041df
parent4b69622d72046f26e17a9e3500a924219685032e (diff)
Update rebar_agent.erl
opps. Infinite loop fixed.
-rw-r--r--src/rebar_agent.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_agent.erl b/src/rebar_agent.erl
index 5d6b050..72bbe44 100644
--- a/src/rebar_agent.erl
+++ b/src/rebar_agent.erl
@@ -137,9 +137,9 @@ reload_modules(Modules, true) ->
{error, ModRsns} ->
Blacklist =
(fun Error([], Acc) -> Acc;
- Error([ {ModError, on_load_not_allowed} |T], Acc) ->
- reload_modules([ModError], false),
- Error(T, Acc);
+ Error([ {ModNif, on_load_not_allowed} |T], Acc) ->
+ reload_modules([ModNif], false),
+ Error(T, [ModNif|Acc]);
Error([ {ModError, _} |T], Acc) ->
Error(T, [ModError|Acc])
end)(ModRsns, []),