From d522e41d5ccce6dfecf22ba153c620ac8aff8c59 Mon Sep 17 00:00:00 2001 From: nothub <48992448+nothub@users.noreply.github.com> Date: Sat, 28 Aug 2021 19:39:42 +0200 Subject: [PATCH] do not exit after successful stream key change (#1355) --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 351fabae0..b9d8af657 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