From a68d12c2af6c498a95fe881e77137e968b886f2a Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 17 Jul 2019 00:00:20 +0200 Subject: [PATCH] :art: Improve yield --- src/lib/shred.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/shred.c b/src/lib/shred.c index 9aa6783e..920cdfdd 100644 --- a/src/lib/shred.c +++ b/src/lib/shred.c @@ -61,10 +61,7 @@ static MFUN(vm_shred_is_done) { static MFUN(shred_yield) { const VM_Shred s = ME(o); const Shreduler sh = s->tick->shreduler; - if(vector_size(shred->code->instr) - shred->pc > 1) - shredule(sh, s, GWION_EPSILON); - else - vm_shred_exit(shred); + shredule(sh, s, GWION_EPSILON); } static SFUN(vm_shred_from_id) { -- 2.43.0