
Where our callback is called with a status other than COMPLETED, something abnormal has happened and we no longer want to either submit further transfers or await a flush. So clear the streaming and flush flags, and proceed to transfer_finished. Do the same in the case where libusb_submit_transfer fails when called to submit the flush transfer.