Skip to content

Commit

Permalink
Add explicit cleanup of listener opts
Browse files Browse the repository at this point in the history
  • Loading branch information
juhlig committed Nov 7, 2024
1 parent 70e0dc4 commit 6ecebfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ranch.erl
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ stop_listener(Ref) ->
stop_listener1(Ref) ->
TransportAndOpts = maybe_get_transport_and_opts(Ref),
_ = supervisor:terminate_child(ranch_sup, {ranch_listener_sup, Ref}),
ok = ranch_server:cleanup_listener_opts(Ref),
Result = supervisor:delete_child(ranch_sup, {ranch_listener_sup, Ref}),
ok = stop_listener2(TransportAndOpts),
Result.
Expand Down

0 comments on commit 6ecebfc

Please sign in to comment.