Correctly propagate errors to avoid unrecoverable hanging in case of unexpected HCI error, such as disconnection of USB adapter.
Previously the internal goroutine with the Accept() loop would terminate but Scan() and all variants of Advertise() would just hang in such a situation, with no practical way for the surrounding application to detect or recover the error.
Correctly propagate errors to avoid unrecoverable hanging in case of unexpected HCI error, such as disconnection of USB adapter.
Previously the internal goroutine with the
Accept()
loop would terminate butScan()
and all variants ofAdvertise()
would just hang in such a situation, with no practical way for the surrounding application to detect or recover the error.