do not exit after successful stream key change (#1355)

This commit is contained in:
nothub 2021-08-28 19:39:42 +02:00 committed by GitHub
parent 15238bf9de
commit d522e41d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,11 +82,10 @@ func main() {
if *newStreamKey != "" { if *newStreamKey != "" {
if err := data.SetStreamKey(*newStreamKey); err != nil { if err := data.SetStreamKey(*newStreamKey); err != nil {
log.Errorln("Error setting your stream key.", err) log.Errorln("Error setting your stream key.", err)
log.Exit(1)
} else { } else {
log.Infoln("Stream key changed to", *newStreamKey) log.Infoln("Stream key changed to", *newStreamKey)
} }
log.Exit(0)
} }
// Set the web server port // Set the web server port