From 4c46eba75dc98a9fc5dc6ac2ad75fe4387df81b8 Mon Sep 17 00:00:00 2001 From: tidwall Date: Tue, 24 Nov 2020 10:27:07 -0700 Subject: [PATCH] Better handle connection errors in tile38-cli This commit fixes an issue with the tile38-cli where it will continually print "Could not connect to Tile38..." when it was unable to connect to the tile38-server. It now cleanly prints the message only once. --- cmd/tile38-cli/main.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/tile38-cli/main.go b/cmd/tile38-cli/main.go index 7b4dc95e..a266484a 100644 --- a/cmd/tile38-cli/main.go +++ b/cmd/tile38-cli/main.go @@ -277,13 +277,6 @@ func main() { } }() for { - if conn == nil { - connDial() - if conn == nil { - continue - } - } - var command string var err error if oneCommand == "" {