Skip to content

Commit

Permalink
Merge pull request #72 from xuyouqiao2005/master
Browse files Browse the repository at this point in the history
sometimes program broken when call spawnInThread
  • Loading branch information
hgoldfish authored May 30, 2024
2 parents c571aad + 26bd828 commit ca7230d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coroutine_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void DeferCallThread::run()
{
makeResult();
if (!eventloop.isNull()) {
eventloop->callLaterThreadSafe(0, new MarkDoneFunctor(done));
eventloop->callLaterThreadSafe(100, new DeleteLaterFunctor<DeferCallThread>(this));
eventloop->callLaterThreadSafe(0, new MarkDoneFunctor(done));
}
}

Expand Down

0 comments on commit ca7230d

Please sign in to comment.