mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Fix roborio duplicate .so's on deploy (#1571)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user