aboutsummaryrefslogtreecommitdiff
path: root/gapii/capture.go
diff options
context:
space:
mode:
Diffstat (limited to 'gapii/capture.go')
-rw-r--r--gapii/capture.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/gapii/capture.go b/gapii/capture.go
index 1b899d8c0..41ef2230f 100644
--- a/gapii/capture.go
+++ b/gapii/capture.go
@@ -62,7 +62,7 @@ func capture(logger log.Logger, port int, w io.Writer, stop chan struct{}) (int6
}
conn, err := net.Dial("tcp", fmt.Sprintf("localhost:%d", port))
if err != nil {
- return 0, err
+ return 0, nil // Treat failure-to-connect as target-not-ready instead of an error.
}
defer conn.Close()
var count, nextSize siSize
@@ -114,7 +114,6 @@ func Capture(logger log.Logger, port int, w io.Writer, stop chan struct{}) (int6
// ADB has an annoying tendancy to insta-close forwarded sockets when
// there's no application waiting for the connection. Treat this as
// another waiting-for-connection case.
- logger.Infof("Pausing...")
select {
case <-stop:
logger.Infof("Aborted.")