fix(snapshot): update snapshot interval (#4789)

* fix(snapshot): update snapshot interval

* style(snapshot): add clarification about clearing signal
pull/4889/head
Chaim Lev-Ari 4 years ago committed by GitHub
parent 387bbeceba
commit 4a1a46c8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ import (
"log"
"time"
"github.com/portainer/portainer/api"
portainer "github.com/portainer/portainer/api"
)
// Service repesents a service to manage endpoint snapshots.
@ -48,7 +48,9 @@ func (service *Service) stop() {
return
}
// clear refreshSignal to mark the service as disabled
close(service.refreshSignal)
service.refreshSignal = nil
}
// SetSnapshotInterval sets the snapshot interval and resets the service

Loading…
Cancel
Save