Only generate passthrough URLs for RoboRIO (#1624)

Otherwise accidentally, a race could occur between coprocessors and rio.

Java was done in both old and new locations as it's a race.
This commit is contained in:
Thad House
2019-04-27 20:35:23 -07:00
committed by Peter Johnson
parent d3affb16bc
commit bdc822fad8
5 changed files with 47 additions and 22 deletions

View File

@@ -67,6 +67,11 @@ public abstract class RobotBase implements AutoCloseable {
public Long getRobotMainThreadId() {
return MAIN_THREAD_ID;
}
@Override
public boolean isRoboRIO() {
return RobotBase.isReal();
}
};
CameraServerSharedStore.setCameraServerShared(shared);