From 7a2ebe03792cd7f57256e7632b14f66e299b9469 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Wed, 20 Sep 2023 17:12:14 -0700 Subject: [PATCH] Update uiautomator2.js --- lib/uiautomator2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/uiautomator2.js b/lib/uiautomator2.js index 0cda32278..45adf93d5 100644 --- a/lib/uiautomator2.js +++ b/lib/uiautomator2.js @@ -309,9 +309,9 @@ class UiAutomator2Server { const waitStop = async () => { // Wait for the process stop by sending a status request to the port. - // We observed the process stop could be delayed, then it caused the process stop - // in the middle of session preparation. It caused invalid session error response by the uia2 server, - // but that was because the process stop's delay. + // We observed the process stop could be delayed, thus causing unexpected crashes + // in the middle of the session preparation process. It caused an invalid session error response + // by the uia2 server, but that was because the process stop's delay. const timeout = 3000; try { await waitForCondition(async () => {