aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ranch.erl')
-rw-r--r--src/ranch.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ranch.erl b/src/ranch.erl
index 0924ee7..59e1fa7 100644
--- a/src/ranch.erl
+++ b/src/ranch.erl
@@ -55,6 +55,7 @@
start_listener(Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts)
when is_integer(NbAcceptors) andalso is_atom(Transport)
andalso is_atom(Protocol) ->
+ _ = code:ensure_loaded(Transport),
case erlang:function_exported(Transport, name, 0) of
false ->
{error, badarg};