From f66377415ecf227d33a0aeaeae2b5e9330f2a43b Mon Sep 17 00:00:00 2001 From: *** <***@example.com> Date: Tue, 20 Apr 2021 20:54:25 +0000 Subject: [PATCH 1/2] stop eternal loop in config loading --- config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.go b/config.go index cdfcaad..a286ef4 100644 --- a/config.go +++ b/config.go @@ -48,6 +48,9 @@ func load_config() { if rerr != nil { if rerr == io.EOF { finished = true + // I don't seem be able to create file without a newline at the end in Linux. + // The problem is, the loop is just spinning trying to find something at the final line. + break } else { log.Fatal("config read error: ", rerr) } -- 2.25.1