fixed waitgroup

This commit is contained in:
Daniel Sommer 2023-11-30 16:58:19 +01:00
parent 3fc77c5b73
commit e8edfdaf83
2 changed files with 3 additions and 3 deletions

4
.vscode/launch.json vendored
View file

@ -9,9 +9,9 @@
"program": "${workspaceFolder}/main.go",
"env":{
"SLIDESHOW_API": "localhost:3000",
"SLIDESHOW_INTERVAL": "60",
"SLIDESHOW_INTERVAL": "3",
"SLIDESHOW_RESOLUTION": "",
"SLIDESHOW_PALETTE": "/tmp/.slideshow.palette",
"SLIDESHOW_PALETTE": "",
"SLIDESHOW_PALETTE_ALGORITHM": "",
"SLIDESHOW_PALETTE_COLORS": "",
"SLIDESHOW_SCRIPT": "",

View file

@ -66,10 +66,10 @@ func setBackground(name string, waitgroup *sync.WaitGroup) {
// encapsulated method to set the background image in a goroutine
func exportColorPalette(name string, waitgroup *sync.WaitGroup) {
timestamp := time.Now().UnixMilli()
defer waitgroup.Done()
if !config.IsPaletteSet() {
return
}
defer waitgroup.Done()
if config.IsScriptStagePrePalette() {
runScript(false)
}