Only exit static target provider on done

This commit is contained in:
Fabian Reinartz 2015-08-18 11:51:53 +02:00
parent b4adf2723d
commit f592740bac

View file

@ -545,6 +545,7 @@ func (sd *StaticProvider) Run(ch chan<- *config.TargetGroup, done <-chan struct{
case ch <- tg:
}
}
<-done
}
// TargetGroups returns the provider's target groups.