Skip to content

Commit

Permalink
[glass] Set immediate flag to listener
Browse files Browse the repository at this point in the history
Resolves #7012
  • Loading branch information
spacey-sooty committed Aug 29, 2024
1 parent dc18f71 commit a6c0312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass/src/libnt/native/cpp/NetworkTablesProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a6c0312

Please sign in to comment.