aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-20 16:46:36 +0100
committerBjörn Gustavsson <[email protected]>2016-01-22 16:44:27 +0100
commit168b7456a249b7f6ea2955059786619968829e4f (patch)
tree83787de4793e08fa7eeee6a5c5ac5881c9e8a0b4 /lib
parentc623e64625cc4154d9d314f46446c681e2e4e697 (diff)
downloadotp-168b7456a249b7f6ea2955059786619968829e4f.tar.gz
otp-168b7456a249b7f6ea2955059786619968829e4f.tar.bz2
otp-168b7456a249b7f6ea2955059786619968829e4f.zip
Avoid testing for pending on_load twice
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/code_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index c354cafa1f..ceb3507f17 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -1191,7 +1191,7 @@ load_file_1(Mod, Caller, #state{path=Path}=St) ->
error ->
{reply,{error,nofile},St};
{Mod,Binary,File} ->
- try_load_module(File, Mod, Binary, Caller, St)
+ try_load_module_1(File, Mod, Binary, Caller, St)
end.
mod_to_bin([Dir|Tail], Mod) ->