This commit is contained in:
aarav18
2023-02-10 17:33:19 -07:00
parent 867e16f0a7
commit c9a4274c82
2 changed files with 9 additions and 7 deletions
@@ -62,12 +62,13 @@ public class JoystickPlayback extends CommandBase {
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
public void end(boolean interrupted) {
input.close();
}
// Returns true when the command should end.
@Override
public boolean isFinished() {
input.close();
return false;
}
}