mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Allow VisionRunner to stop (#442)
This commit is contained in:
committed by
Peter Johnson
parent
2e3503517d
commit
eee7f3991c
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user