Skip to content

Commit

Permalink
Cleanup listener opts on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
juhlig committed Nov 7, 2024
1 parent 70e0dc4 commit b90878a
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 @@ -207,6 +207,7 @@ stop_listener1(Ref) ->
TransportAndOpts = maybe_get_transport_and_opts(Ref),
_ = supervisor:terminate_child(ranch_sup, {ranch_listener_sup, Ref}),
Result = supervisor:delete_child(ranch_sup, {ranch_listener_sup, Ref}),
ok = ranch_server:cleanup_listener_opts(Ref),
ok = stop_listener2(TransportAndOpts),
Result.

Expand Down

0 comments on commit b90878a

Please sign in to comment.