Skip to content

Commit

Permalink
fix: stop uia2 process as well
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jul 22, 2024
1 parent 36542a4 commit 4e26bed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/uiautomator2.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ class UiAutomator2Server {
}

try {
await this.adb.forceStop(SERVER_TEST_PACKAGE_ID);
await B.all([
this.adb.forceStop(SERVER_PACKAGE_ID),
this.adb.forceStop(SERVER_TEST_PACKAGE_ID)
]);
} catch (ignore) {}
if (strictCleanup) {
// https://github.com/appium/appium/issues/10749
Expand Down

0 comments on commit 4e26bed

Please sign in to comment.