// PingWithTimeout performs a Server List Ping interaction with modern (1.7 and newer) Minecraft server running on the specified host and the specified port with
// read and write timeout.
func PingWithTimeout(host string, port uint16, timeout time.Duration) (*Response, error) {
// ...
res, err := sendServerListPing(conn, host, port)
if err != nil {
return nil, fmt.Errorf("ping error: %w", err)
}
// ...
}
So if server doesn't respond, we just staying locked.
See https://github.com/alteamc/minequery/blob/0902c57917dc366ee7e8fe4750c73942234f3b83/ping/ping.go#L16