From 79b0a4999412bb39f23fdeffed4ac331692da3e8 Mon Sep 17 00:00:00 2001 From: Saxon Nelson-Milton Date: Sun, 16 Jul 2023 06:45:20 +0000 Subject: [PATCH] revid: don't append Config.RTMPURL Config.RTMPURL was being appended when updated, which means that it would just continue to grow, and by the time we actually try to use the RTMP URLs that are stored, we end up using old ones. Instead this should just be completely replaced. --- revid/config/variables.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/revid/config/variables.go b/revid/config/variables.go index 84d15631..0727c02c 100644 --- a/revid/config/variables.go +++ b/revid/config/variables.go @@ -586,10 +586,7 @@ var Variables = []struct { Type: typeString, Update: func(c *Config, v string) { v = strings.ReplaceAll(v, " ", "") - split := strings.Split(v, ",") - for _, s := range split { - c.RTMPURL = append(c.RTMPURL, s) - } + c.RTMPURL = strings.Split(v, ",") }, }, {