fix:the problem of thread exiting

Signed-off-by: yueyan <yueyan8@huawei.com>
This commit is contained in:
yueyan 2024-10-21 12:09:45 +08:00
parent 10bb55c710
commit 1568c45b5c

View File

@ -311,7 +311,7 @@ bool IPCThreadSkeleton::IsSendRequesting()
bool IPCThreadSkeleton::SetThreadType(ThreadType type)
{
IPCThreadSkeleton *current = IPCThreadSkeleton::GetCurrent();
if (current != nullptr) {
if (current == nullptr) {
return false;
}