mirror of https://github.com/tidwall/tile38.git
Fix infinite loop on connection failure
This commit is contained in:
parent
813772f2c6
commit
9d2753378e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue