Currently if there's an error in either the download or the capture threads and they exit, the main thread will unknowingly continue its execution. This may block the function call forever, or unnecessarily continue running.
This could be done by setting its own end field to 1, but I'm not sure if it's the best way to do it.
Currently if there's an error in either the download or the capture threads and they exit, the main thread will unknowingly continue its execution. This may block the function call forever, or unnecessarily continue running.
This could be done by setting its own
end
field to 1, but I'm not sure if it's the best way to do it.