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:
|
case <-l.stop:
|
||||||
l.logger.Info("stopping")
|
l.logger.Info("stopping")
|
||||||
updateCancel()
|
updateCancel()
|
||||||
<-errorCh
|
|
||||||
l.stopped <- struct{}{}
|
l.stopped <- struct{}{}
|
||||||
case servers := <-serversCh:
|
case servers := <-serversCh:
|
||||||
updateCancel()
|
updateCancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user