!19140 fix the bug of deadloop actor runtime

Merge pull request !19140 from limingqi107/actor_runtime2
This commit is contained in:
i-robot 2021-06-30 07:08:00 +00:00 committed by Gitee
commit 3bf35c3ae7
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ int ShardedThread::EnqueMessage(std::unique_ptr<MessageBase> &&msg) {
++msgCount;
// true : The actor is running. else the actor will be ready to run.
if (start && (ready == false) && (terminated == false) && actor->IsActive(msgCount)) {
if (start && (ready == false) && (terminated == false)) {
ActorMgr::GetActorMgrRef()->SetActorReady(actor);
ready = true;
}