diff --git a/consumer/speed_controller.go b/consumer/speed_controller.go index e0a482d..a26cc60 100644 --- a/consumer/speed_controller.go +++ b/consumer/speed_controller.go @@ -52,10 +52,11 @@ func (c *fanControl) StartControl() { for { newFanSpeedList := make([]int, c.processorCount) + checker: for { select { case <-ticker: - break + break checker case changedSpeed := <-c.fanSpeedConsumer: newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed case <-c.handler.Done():