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 () => {