This commit is contained in:
2021-02-26 18:00:54 +08:00
parent 44540d9cc0
commit eecc238a3d
+3 -2
View File
@@ -57,10 +57,11 @@ class OnWorkerStart extends Callback
return; return;
} }
while (true) { while (true) {
if (!isset(Coroutine::getContext(Coroutine::getPcid())['isComplete'])) { $context = Coroutine::getContext(Coroutine::getPcid());
if (!isset($context['isComplete'])) {
break; break;
} }
$content = Coroutine::getContext(Coroutine::getPcid())['isComplete']; $content = $context['isComplete'];
if ($content === true) { if ($content === true) {
break; break;
} }