4b9891533a
Milestone: the demo app prints /proc/loadavg from the device.
16 lines
248 B
Go
16 lines
248 B
Go
package goadb
|
|
|
|
import "github.com/zach-klippenstein/goadb/wire"
|
|
|
|
type nilSafeDialer struct {
|
|
wire.Dialer
|
|
}
|
|
|
|
func (d nilSafeDialer) Dial() (*wire.Conn, error) {
|
|
if d.Dialer == nil {
|
|
d.Dialer = wire.NewDialer("", 0)
|
|
}
|
|
|
|
return d.Dialer.Dial()
|
|
}
|