diff options
Diffstat (limited to 'src/cowboy_tls.erl')
-rw-r--r-- | src/cowboy_tls.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cowboy_tls.erl b/src/cowboy_tls.erl index 7dd558a..24e6666 100644 --- a/src/cowboy_tls.erl +++ b/src/cowboy_tls.erl @@ -45,9 +45,8 @@ init(Parent, Ref, Socket, Transport, Opts) -> end. init(Parent, Ref, Socket, Transport, Opts, Protocol) -> - {Handler, Type} = maps:get(stream_handler, Opts, {cowboy_stream_h, supervisor}), - _ = case Type of + _ = case maps:get(connection_type, Opts, supervisor) of worker -> ok; supervisor -> process_flag(trap_exit, true) end, - Protocol:init(Parent, Ref, Socket, Transport, Opts, Handler). + Protocol:init(Parent, Ref, Socket, Transport, Opts). |