From 6ecebfceb814beb8b58d76efa7d6970df036c0a9 Mon Sep 17 00:00:00 2001 From: Jan Uhlig Date: Thu, 7 Nov 2024 13:14:22 +0100 Subject: [PATCH] Add explicit cleanup of listener opts --- src/ranch.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ranch.erl b/src/ranch.erl index 81e63f6ee3..85c2c731ce 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -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.