aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_app.erl
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2020-02-19 11:49:17 +0100
committerLoïc Hoguin <[email protected]>2020-02-21 11:19:36 +0100
commit4b80e31bc48a7fd8552ee34f59de26c790b19ceb (patch)
tree7ab27cf2d116ea2a53424ba45cef7c7d08c3f5c0 /src/ranch_app.erl
parent4ffe0c99114ab7049aa19a3a2c33d662e7cf311d (diff)
downloadranch-4b80e31bc48a7fd8552ee34f59de26c790b19ceb.tar.gz
ranch-4b80e31bc48a7fd8552ee34f59de26c790b19ceb.tar.bz2
ranch-4b80e31bc48a7fd8552ee34f59de26c790b19ceb.zip
Prevent side effects in init of supervisors
Diffstat (limited to 'src/ranch_app.erl')
-rw-r--r--src/ranch_app.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ranch_app.erl b/src/ranch_app.erl
index e65db48..8069239 100644
--- a/src/ranch_app.erl
+++ b/src/ranch_app.erl
@@ -22,6 +22,8 @@
-spec start(application:start_type(), term()) -> {ok, pid()} | {error, term()}.
start(_, _) ->
_ = consider_profiling(),
+ ranch_server = ets:new(ranch_server, [
+ ordered_set, public, named_table]),
ranch_sup:start_link().
-spec stop(term()) -> ok.