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

@@ -104,7 +104,7 @@ public class TimeSyncClient {
public void stop() {
synchronized (mutex) {
if (handle > 0) {
if (handle != 0) {
TimeSyncClient.stop(handle);
handle = 0;
}
@@ -119,7 +119,7 @@ public class TimeSyncClient {
*/
public long getOffset() {
synchronized (mutex) {
if (handle > 0) {
if (handle != 0) {
return TimeSyncClient.getOffset(handle);
}
@@ -139,7 +139,7 @@ public class TimeSyncClient {
public PingMetadata getPingMetadata() {
synchronized (mutex) {
if (handle > 0) {
if (handle != 0) {
return TimeSyncClient.getLatestMetadata(handle);
}

View File

@@ -27,7 +27,7 @@ public class TimeSyncServer {
public void start() {
synchronized (mutex) {
if (handle > 0) {
if (handle != 0) {
TimeSyncServer.start(handle);
} else {
System.err.println("TimeSyncServer: use after free?");
@@ -36,7 +36,7 @@ public class TimeSyncServer {
}
public void stop() {
if (handle > 0) {
if (handle != 0) {
TimeSyncServer.stop(handle);
handle = 0;
}