mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 21:59:43 +03:00
do not exit after successful stream key change (#1355)
This commit is contained in:
parent
15238bf9de
commit
d522e41d5c
1 changed files with 1 additions and 2 deletions
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…
Reference in a new issue