diff --git a/.vscode/launch.json b/.vscode/launch.json index 4cd5e8d..5e469ac 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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": "", diff --git a/internal/slideshow.go b/internal/slideshow.go index 427b648..e1f1491 100644 --- a/internal/slideshow.go +++ b/internal/slideshow.go @@ -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) }