update sourcehandler/src/distributed_input_source_handler.cpp.

Signed-off-by: ry521 <renyi50@huawei.com>
This commit is contained in:
ry521
2023-10-10 12:27:40 +00:00
committed by Gitee
parent c2c06993be
commit d06d7e671b
@@ -28,6 +28,15 @@ IMPLEMENT_SINGLE_INSTANCE(DistributedInputSourceHandler);
DistributedInputSourceHandler::~DistributedInputSourceHandler()
{
DHLOGI("DInputSourceHandler construct.");
std::lock_guard<std::mutex> lock(proxyMutex_);
if (sourceSvrRecipient_ == nullptr) {
sourceSvrRecipient_ = new (std::nothrow) DInputSourceSvrRecipient();
}
if (sourceSvrRecipient_ == nullptr) {
sourceSvrRecipient_ = new (std::nothrow) LoadDInputSourceCallback();
}
}
int32_t DistributedInputSourceHandler::InitSource(const std::string &params)