feat: Stop scan process when device state is not ready.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user