Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we read the image data, we have to use readFully. Otherwise, if GRIP is in the middle of sending the image, we could end up reading half of it and interpretting the next few bytes as the header of the next image, resulting in an "incorrect magic number" error. In practice, this seems to happen when GRIP is publishing large, high-quality images or is running on a slower machine.
- Loading branch information