Fixed the threading issue with AVAHI

initialize to 0!