Fixed avahi so that discovery and publishing are each in seperate threads so they dont conflict