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.
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.