JPery / MJPEGWriter

Lightweight HTTP server to stream your OpenCV processing in C++
MIT License
97 stars 40 forks source link

stop() function halting #16

Closed marzxious closed 3 years ago

marzxious commented 4 years ago

hi, first thank you for pulling the example together, I've benefited from it a lot as a socket noobie. When I ran the example, I was having issue stoping the socket thread on both listens & writes. It seems to stuck at p_thread trying to join the writes & listens. Would you kindly provides some insight ? Thank you.

JPery commented 4 years ago

Hi! Thank you for issuing this problem. It seems like the listening thread wasn't exiting as it should so I added a new condition when the sock is invalid to end it. The problem should be fixed at d00cbdc.

Hope this helps.

Best regarads!