This commit is contained in:
@@ -63,7 +63,7 @@ func (b *Bridge) Run(ctx context.Context, eventCh chan<- models.Event) error {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
case <-lightRefreshTimer.C:
|
case <-lightRefreshTimer.C:
|
||||||
if time.Since(lastUpdate) < time.Second*10 {
|
if time.Since(lastUpdate) < time.Second*2 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user