Allow VisionRunner to stop (#442)

This commit is contained in:
Austin Shalit
2017-01-04 19:41:07 -08:00
committed by Peter Johnson
parent 2e3503517d
commit eee7f3991c

View File

@@ -107,7 +107,7 @@ public class VisionRunner<P extends VisionPipeline> {
throw new IllegalStateException(
"VisionRunner.runForever() cannot be called from the main robot thread");
}
while (true) {
while (!Thread.interrupted()) {
runOnce();
}
}