summaryrefslogtreecommitdiff
path: root/src/rebar_xref.erl
diff options
context:
space:
mode:
authorJordi Chacon <jordi.chacon@klarna.com>2011-03-26 12:14:52 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-03-26 12:25:25 +0100
commite684af36f0153657ebcf47da4827f9a4f8b61dc3 (patch)
tree793ff0cfbe22126d9dcdaa5e6652304d20ed0d55 /src/rebar_xref.erl
parent2ee4899d24e300dc9af103d6a43edf997fb010ab (diff)
downloadrebar-e684af36f0153657ebcf47da4827f9a4f8b61dc3.tar.gz
Fix bug: xref should be stopped after being run
Xref not being stopped caused a crash in subsequent xref runs.
Diffstat (limited to 'src/rebar_xref.erl')
-rw-r--r--src/rebar_xref.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_xref.erl b/src/rebar_xref.erl
index f46ccfc..e0f4547 100644
--- a/src/rebar_xref.erl
+++ b/src/rebar_xref.erl
@@ -79,6 +79,9 @@ xref(Config, _) ->
%% Restore the original code path
true = code:set_path(OrigPath),
+ %% Stop xref
+ stopped = xref:stop(xref),
+
ok.
%% ===================================================================