<div dir="ltr">I was able to find the root cause of the issue:<br>When closing the device, the listening thread is not notified via the signal condition variable.<div>Instead the condition is simply destroyed, causing the thread to be stuck forever.</div><div><br>Attached is a very simple diff which fixes the problem by notifying the thread before destroying the condition.</div><div>Please let me know if you have any questions.</div><div>I would highly appreciate it if someone can sponsor the bug.</div><div><br></div><div>Best regards,</div><div>David</div><div><br></div></div>