mirror of https://github.com/tidwall/tile38.git
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:
parent
6dc4274373
commit
4c46eba75d
|
@ -277,13 +277,6 @@ func main() {
|
|||
}
|
||||
}()
|
||||
for {
|
||||
if conn == nil {
|
||||
connDial()
|
||||
if conn == nil {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
var command string
|
||||
var err error
|
||||
if oneCommand == "" {
|
||||
|
|
Loading…
Reference in New Issue