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.
This commit is contained in:
Saxon Nelson-Milton 2023-07-16 06:45:20 +00:00
parent 47b2b1576f
commit 79b0a49994
1 changed files with 1 additions and 4 deletions

View File

@ -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, ",")
},
},
{