summaryrefslogtreecommitdiff
path: root/layout-inspector/src
diff options
context:
space:
mode:
authorJoe Baker-Malone <jbakermalone@google.com>2021-12-16 17:10:16 -0800
committerJoe Baker-Malone <jbakermalone@google.com>2021-12-17 02:35:26 +0000
commit592b70922e23ee4d263414f7ede49b70a3e2753d (patch)
tree29caef8827b8237b9d50c2aaf805b70bff6b2c2e /layout-inspector/src
parentdf2d8dcfc6d8ff8d296aa113efbf70c0129e8405 (diff)
downloadidea-592b70922e23ee4d263414f7ede49b70a3e2753d.tar.gz
Put the connection timeout back to 30s
During app launch, we start trying to connect (and thus start the timer) right away, before the app is even fully running. Debugger attach etc. can take a while, which causes us to time out frequently. Ideally we'd be able to detect this situation and not start the timer until the app is actually up, but I'm not sure there's a straightforward way to do that. Test: none Bug: none Change-Id: Ia6a380eb34a60af2534008c448af72c47fcb87bb
Diffstat (limited to 'layout-inspector/src')
-rw-r--r--layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/InspectorClientLaunchMonitor.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/InspectorClientLaunchMonitor.kt b/layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/InspectorClientLaunchMonitor.kt
index 62843995a9b..adcc24f7f7f 100644
--- a/layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/InspectorClientLaunchMonitor.kt
+++ b/layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/InspectorClientLaunchMonitor.kt
@@ -27,7 +27,7 @@ import java.util.concurrent.ScheduledFuture
import java.util.concurrent.TimeUnit
@VisibleForTesting val CONNECTED_STATE = AttachErrorState.MODEL_UPDATED
-@VisibleForTesting const val CONNECT_TIMEOUT_SECONDS: Long = 10L
+@VisibleForTesting const val CONNECT_TIMEOUT_SECONDS: Long = 30L
class InspectorClientLaunchMonitor(
@TestOnly private val executorService: ScheduledExecutorService = AppExecutorUtil.getAppScheduledExecutorService()