Skip to content

Commit

Permalink
Better handle connection errors in tile38-cli
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tidwall committed Nov 24, 2020
1 parent 6c653ab commit 6092f73
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmd/tile38-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,6 @@ func main() {
}
}()
for {
if conn == nil {
connDial()
if conn == nil {
continue
}
}

var command string
var err error
if oneCommand == "" {
Expand Down

0 comments on commit 6092f73

Please sign in to comment.