Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(utilities): Prevent finding the same box index over and over
Since it removed the data before the found box's index(-4), all loops would only find the same box at the same index again, but this time the box index would be 4 since all previous data was removed in the prior loop. Since the index-=4 code is only run if the index > 4, this never run on the second loop, and since this data now does not have the box length, Box.parse failed with an IOError. This corrects looping through boxes and correctly obtains and parses each box.
- Loading branch information