Closed mecraggs closed 2 years ago
This checks if the client socket is still valid for writing, avoiding a crash. Reproducible when streaming at a high rate ( 25fps ) and pressing refresh in the browser or closing the tab. Should also fix the first crash in #18.
Hello @mecraggs thank you for the PR. Please fix the PR by following the contribution guideline below. Thank you.
https://github.com/nadjieb/cpp-mjpeg-streamer/blob/master/CONTRIBUTING.md
This checks if the client socket is still valid for writing, avoiding a crash. Reproducible when streaming at a high rate ( 25fps ) and pressing refresh in the browser or closing the tab. Should also fix the first crash in #18.