Fix MSAN error in ChatClient. Thanks to new function calls on teardown, members are no longer declared in the proper order. PiperOrigin-RevId: 814293891
diff --git a/quiche/quic/moqt/tools/chat_client.cc b/quiche/quic/moqt/tools/chat_client.cc index 111e83b..fd6a7f6 100644 --- a/quiche/quic/moqt/tools/chat_client.cc +++ b/quiche/quic/moqt/tools/chat_client.cc
@@ -96,8 +96,8 @@ absl::string_view localhost, quic::QuicEventLoop* event_loop) : my_track_name_(ConstructTrackName(chat_id, username, localhost)), - event_loop_(event_loop), remote_track_visitor_(this), + event_loop_(event_loop), interface_(std::move(interface)) { if (event_loop_ == nullptr) { quic::QuicDefaultClock* clock = quic::QuicDefaultClock::Get();
diff --git a/quiche/quic/moqt/tools/chat_client.h b/quiche/quic/moqt/tools/chat_client.h index b7ed5a6..c46769a 100644 --- a/quiche/quic/moqt/tools/chat_client.h +++ b/quiche/quic/moqt/tools/chat_client.h
@@ -139,6 +139,10 @@ // Basic session information FullTrackName my_track_name_; + // Related to subscriptions/publish_namespaces + // TODO: One for each subscribe + RemoteTrackVisitor remote_track_visitor_; + // General state variables // The event loop to use for this client. quic::QuicEventLoop* event_loop_; @@ -155,9 +159,6 @@ absl::flat_hash_set<FullTrackName> other_users_; int subscribes_to_make_ = 0; - // Related to subscriptions/publish_namespaces - // TODO: One for each subscribe - RemoteTrackVisitor remote_track_visitor_; // Handling outgoing messages std::shared_ptr<moqt::MoqtOutgoingQueue> queue_;