mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user