Skip to content

Commit

Permalink
perf: 初始化时覆盖已存在的adb config cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Nov 25, 2023
1 parent ea88473 commit 1166188
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/cli/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ bool select_device(std::string& name, std::string& SN, std::string& adb)
SN = MaaToolKitGetDeviceAdbSerial(device_index);
adb = MaaToolKitGetDeviceAdbPath(device_index);
AdbConfigCache adb_config_cache;
if (!adb_config_cache.has(name, SN)) {
adb_config_cache.set_adb_config(name, SN, MaaToolKitGetDeviceAdbConfig(device_index));
}
adb_config_cache.set_adb_config(name, SN, MaaToolKitGetDeviceAdbConfig(device_index));
return true;
}

Expand Down

0 comments on commit 1166188

Please sign in to comment.