Because a previous loop could have resulted in the sync.Once wg.Done being called, my earlier commit this morning could have resulted in the wg.Done being called twice.
This corrects the issue by correctly using the sync.Once signal for any wg.Done inside the listen goroutine.
Because a previous loop could have resulted in the sync.Once wg.Done being called, my earlier commit this morning could have resulted in the wg.Done being called twice.
This corrects the issue by correctly using the sync.Once signal for any wg.Done inside the listen goroutine.
This change is![Reviewable](https://reviewable.io/review_button.svg)