aboutsummaryrefslogtreecommitdiffstats
path: root/vm/adb
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-25 12:07:11 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-25 11:18:31 +0000
commit7e02dfac6584de88e03df494ca500b59802d93eb (patch)
treeaf0a55b5e65966a5715f917383ca3d2f59982932 /vm/adb
parent36dfdd05f93ef886e289dd5cc91330d8ae1d0182 (diff)
vm: dedup VM count restriction in debug mode
Move the VM count restriction logic info vm package. This avoids lots of duplication, makes it supported for VM types that failed to do this, and allows to unify more VM count logic in future.
Diffstat (limited to 'vm/adb')
-rw-r--r--vm/adb/adb.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index 67336f008..e914acded 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -115,9 +115,6 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) {
return nil, fmt.Errorf("invalid adb device id '%v'", device.Serial)
}
}
- if env.Debug {
- cfg.Devices = cfg.Devices[:1]
- }
pool := &Pool{
cfg: cfg,
env: env,