From a6c0312771fb3bf641e2f66e72166443e947bf5e Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Thu, 29 Aug 2024 13:51:39 +0800 Subject: [PATCH] [glass] Set immediate flag to listener Resolves https://github.com/wpilibsuite/allwpilib/issues/7012 --- glass/src/libnt/native/cpp/NetworkTablesProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glass/src/libnt/native/cpp/NetworkTablesProvider.cpp b/glass/src/libnt/native/cpp/NetworkTablesProvider.cpp index 5c8c6f56467..30cd9afdb2f 100644 --- a/glass/src/libnt/native/cpp/NetworkTablesProvider.cpp +++ b/glass/src/libnt/native/cpp/NetworkTablesProvider.cpp @@ -26,7 +26,7 @@ NetworkTablesProvider::NetworkTablesProvider(Storage& storage, m_poller{inst}, m_typeCache{storage.GetChild("types")} { storage.SetCustomApply([this] { - m_listener = m_poller.AddListener({{""}}, nt::EventFlags::kTopic); + m_listener = m_poller.AddListener({{""}}, nt::EventFlags::kImmediate); for (auto&& childIt : m_storage.GetChildren()) { auto id = childIt.key(); auto typePtr = m_typeCache.FindValue(id);