enbility / eebus-go

EEBUS protocol implementation in go
https://enbility.net
MIT License
52 stars 14 forks source link

Improve mDNS startup and setup logic #44

Closed DerAndereAndi closed 1 year ago

DerAndereAndi commented 1 year ago

Checking if avahi is available can take about a second. If the setup process is run in a go-routine, this could cause device registrations and searches to come in before mDNS setup is finished and thus cause panics.

Instead incoming device registrations should be saved and search started once setup is done.

DerAndereAndi commented 1 year ago

Fixed in https://github.com/enbility/eebus-go/pull/69