do not exit after successful stream key change (#1355)
This commit is contained in:
parent
15238bf9de
commit
d522e41d5c
3
main.go
3
main.go
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user