muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces
Apache License 2.0
652 stars 125 forks source link

Proposal for #113 fix #117

Closed 1am closed 4 years ago

1am commented 4 years ago

Hello

This change seems to fix the issue described in the ticket and also a potential panic caused by channel being closed while new values could still come in which caused a panic. Attached also a script which displays the number of current go routines and demonstrates that after the fix they don't change over time, no matter how many times we subscribe to notifications.