[TSP] Move Bind() to Start (#1538)

Fixes UB with static init. Turns out starting threads in static init doesn't work on windows.
This commit is contained in:
Matt
2024-11-09 14:35:38 -08:00
committed by GitHub
parent d188c37466
commit 14f7155a23
4 changed files with 33 additions and 23 deletions

View File

@@ -53,6 +53,7 @@ class TimeSyncServer {
wpi::Logger m_logger;
std::function<uint64_t()> m_timeProvider;
SharedUdpPtr m_udp;
int m_port;
std::thread m_listener;