Skip to content

Commit

Permalink
Update uiautomator2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Sep 21, 2023
1 parent ffa2cfc commit 7a2ebe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/uiautomator2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 7a2ebe0

Please sign in to comment.