Skip to content

Commit

Permalink
Fix Eventloop!
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 18, 2024
1 parent e941eaf commit ebbb087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vennv/vapm/EventLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected static function run(): void
*/
protected static function runSingle(): void
{
while (!self::$queues->isEmpty() || !CoroutineGen::getTaskQueue()?->isEmpty() || MicroTask::isPrepare() || MacroTask::isPrepare()) self::run();
while (!self::$queues->isEmpty() || (CoroutineGen::getTaskQueue() !== null && !CoroutineGen::getTaskQueue()->isEmpty()) || MicroTask::isPrepare() || MacroTask::isPrepare()) self::run();
}

}

0 comments on commit ebbb087

Please sign in to comment.