grandcat / zeroconf

mDNS / DNS-SD Service Discovery in pure Go (also known as Bonjour)
Other
748 stars 172 forks source link

Finish server shutdown after unregister error #71

Closed alice-samsara closed 4 years ago

alice-samsara commented 4 years ago

Previously if s.unregister returns an error, the server shutdown will prematurely end. This will strand goroutines and lead to memory leaks.