From: fennecdjay Date: Tue, 16 Jul 2019 22:00:20 +0000 (+0200) Subject: :art: Improve yield X-Git-Tag: nightly~2327 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a68d12c2af6c498a95fe881e77137e968b886f2a;p=gwion.git :art: Improve yield --- 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) {