mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
feat: 强制替换adb前等待进程退出
This commit is contained in:
@@ -2505,6 +2505,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
foreach (var process in Process.GetProcessesByName(Path.GetFileName(AdbPath)))
|
||||
{
|
||||
process.Kill();
|
||||
process.WaitForExit(5000);
|
||||
}
|
||||
|
||||
string adbBack = AdbPath + ".bak";
|
||||
|
||||
Reference in New Issue
Block a user