Fix issue when multiple listeners are added for the tag event. When this happens multiple scanTag loops are running and cause scanTag to stop returning tags.
With this PR the scanTag loop only start on the first listener and stops after there are no more listeners.
Fix issue when multiple listeners are added for the
tag
event. When this happens multiple scanTag loops are running and cause scanTag to stop returning tags.With this PR the scanTag loop only start on the first listener and stops after there are no more listeners.