There was an error while loading. Please reload this page.
1 parent 9a72949 commit c666056Copy full SHA for c666056
1 file changed
src/quic/endpoint.cc
@@ -736,7 +736,9 @@ void Endpoint::RemoveSession(const CID& cid,
736
}
737
738
if (primary_session_count_ > 0 && --primary_session_count_ == 0) {
739
- udp_.Unref();
+ if (!is_listening()) {
740
+ udp_.Unref();
741
+ }
742
session_manager().RemoveSession(cid);
743
// The endpoint may be idle (no sessions, not listening). MaybeDestroy
744
// handles both closing (immediate destroy) and idle timeout (start
0 commit comments