Bug fix: Stopping updater loop deadlock
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user