Fix in main loop: only tails will send adv/pub messages.