From 26bd82871eafcf9426901c0d2db8f60b8b9cee38 Mon Sep 17 00:00:00 2001 From: xuyouqiao <278542829@qq.com> Date: Thu, 30 May 2024 15:32:48 +0800 Subject: [PATCH] sometimes program broken when call spawnInThread --- src/coroutine_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coroutine_utils.cpp b/src/coroutine_utils.cpp index 7a2b0047..a61d91d8 100755 --- a/src/coroutine_utils.cpp +++ b/src/coroutine_utils.cpp @@ -48,8 +48,8 @@ void DeferCallThread::run() { makeResult(); if (!eventloop.isNull()) { - eventloop->callLaterThreadSafe(0, new MarkDoneFunctor(done)); eventloop->callLaterThreadSafe(100, new DeleteLaterFunctor(this)); + eventloop->callLaterThreadSafe(0, new MarkDoneFunctor(done)); } }