Fix r?.throw because the generator is already closed/finished by the time it runs, so it never triggers the catch()
Added console.log to print a more friendly error message (only include error code is if it's >0)
Moved !isOpen() check. HAP requests last fragment even though it's already closed the recording stream. Now the fragment request is ignored entirely (rather than just skipping the yield).
Fix
r?.throw
because the generator is already closed/finished by the time it runs, so it never triggers thecatch()
Added
console.log
to print a more friendly error message (only include error code is if it's >0)Moved
!isOpen()
check. HAP requests last fragment even though it's already closed the recording stream. Now the fragment request is ignored entirely (rather than just skipping theyield
).