update core/connection/wifi_direct_cpp/wifi_direct_scheduler.cpp.

Signed-off-by: shiyifan <shiyifan10@huawei.com>
This commit is contained in:
shiyifan 2024-08-23 10:30:47 +00:00 committed by Gitee
parent 60c6f7e3bd
commit 39539d0b7d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -165,6 +165,7 @@ int WifiDirectScheduler::ScheduleActiveCommand(const std::shared_ptr<WifiDirectC
return SOFTBUS_CONN_REMOTE_DEVICE_ID_EMPTY;
}
std::lock_guard executorLock(executorLock_);
auto it = executors_.find(remoteDeviceId);
if (it != executors_.end() || executors_.size() == MAX_EXECUTOR) {
CONN_LOGI(CONN_WIFI_DIRECT, "push command to list, commandId=%{public}u", command->GetId());