Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

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