feat: Stop scan process when device state is not ready.

This commit is contained in:
sunwen
2024-09-12 17:46:59 +08:00
parent fbaece22a1
commit 031f1a2a47

View File

@@ -317,6 +317,7 @@ void DeviceManager::startScan(const QString& json, bool empty)
{
QString errMsg(empty ? tr("Device is not ready, start empty scan operation failed!") : tr("Device is not ready, start scan operation failed!"));
THROW_ERROR(errMsg);
TRIGGER_EVENT(StopScanProcess, nullptr, nullptr);
return;
}
AppGlobalValues::setEmptyScanFlag(empty);