Bug fix: Stopping updater loop deadlock

This commit is contained in:
Quentin McGaw
2020-12-30 18:29:28 +00:00
parent 25acbf8501
commit cf66db8d4b

View File

@@ -131,7 +131,6 @@ func (l *looper) Run(ctx context.Context, wg *sync.WaitGroup) {
case <-l.stop:
l.logger.Info("stopping")
updateCancel()
<-errorCh
l.stopped <- struct{}{}
case servers := <-serversCh:
updateCancel()