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.
This commit is contained in:
tidwall 2020-11-24 10:27:07 -07:00
parent 6dc4274373
commit 4c46eba75d
1 changed files with 0 additions and 7 deletions

View File

@ -277,13 +277,6 @@ func main() {
}
}()
for {
if conn == nil {
connDial()
if conn == nil {
continue
}
}
var command string
var err error
if oneCommand == "" {