From: Jérémie Astor Date: Wed, 6 May 2020 13:55:07 +0000 (+0200) Subject: :bug: Fix yield when not from original shred X-Git-Tag: nightly~1664 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=53b3c38176d7f432e22cca20bbb6b0ecbf350973;p=gwion.git :bug: Fix yield when not from original shred --- diff --git a/src/lib/shred.c b/src/lib/shred.c index 6a7b428d..9153807e 100644 --- a/src/lib/shred.c +++ b/src/lib/shred.c @@ -61,6 +61,8 @@ static MFUN(vm_shred_is_done) { static MFUN(shred_yield) { const VM_Shred s = ME(o); const Shreduler sh = s->tick->shreduler; + if(s != shred) + shreduler_remove(sh, s, 0); shredule(sh, s, GWION_EPSILON); }