summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_agent.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_agent.erl b/src/rebar_agent.erl
index 6b4526e..8e1c8f6 100644
--- a/src/rebar_agent.erl
+++ b/src/rebar_agent.erl
@@ -152,4 +152,4 @@ reload_modules(Modules, true) ->
%% Older versions, use a more ad-hoc mechanism.
reload_modules(Modules, false) ->
- [begin code:purge(M), code:load_file(M) end || M <- Modules].
+ [begin code:delete(M), code:purge(M), code:load_file(M) end || M <- Modules].