diff --git a/source/cli/device.cpp b/source/cli/device.cpp index 2338e97..216934e 100644 --- a/source/cli/device.cpp +++ b/source/cli/device.cpp @@ -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;