Skip to content

Commit

Permalink
fix: wait find device
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Dec 11, 2024
1 parent bedbf5e commit 9052b1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/cli/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ bool default_device_init(DeviceConfig& device)
MaaSize scanning_devices()
{
std::cout << "Scanning for Devices..." << std::endl;
auto device_size = MaaToolkitPostFindDevice();
MaaToolkitPostFindDevice();
auto device_size = MaaToolkitWaitForFindDeviceToComplete();
if (device_size == 0) {
std::cout << "No Devices Found" << std::endl;
return 0;
Expand Down

0 comments on commit 9052b1b

Please sign in to comment.