From 9d2753378e40622299b57c50a4cb0905cfe54e7d Mon Sep 17 00:00:00 2001 From: tidwall Date: Sun, 3 Nov 2019 13:29:33 -0700 Subject: [PATCH] Fix infinite loop on connection failure --- cmd/tile38-cli/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/tile38-cli/main.go b/cmd/tile38-cli/main.go index 52b6111a..9faeb6ff 100644 --- a/cmd/tile38-cli/main.go +++ b/cmd/tile38-cli/main.go @@ -171,6 +171,9 @@ func main() { fmt.Fprintln(os.Stderr, err.Error()) os.Exit(1) } + if oneCommand != "" { + os.Exit(1) + } } else if _, err := conn.Do("output " + output); err != nil { fmt.Fprintln(os.Stderr, err.Error()) os.Exit(1)