Fix roborio duplicate .so's on deploy (#1571)

This commit is contained in:
Matt
2024-11-14 01:52:23 -05:00
committed by GitHub
parent 5f3dc152c3
commit c04e13ef93
13 changed files with 57 additions and 32 deletions

View File

@@ -129,8 +129,11 @@ public class TimeSyncManager {
var conns = ntInstance.getConnections();
if (conns.length > 0) {
logger.debug("Changing TimeSyncClient server to " + conns[0].remote_ip);
m_client.setServer(conns[0].remote_ip);
var newServer = conns[0].remote_ip;
if (!m_client.getServer().equals(newServer)) {
logger.debug("Changing TimeSyncClient server to " + newServer);
m_client.setServer(newServer);
}
}
if (m_client != null) {