From 53b3c38176d7f432e22cca20bbb6b0ecbf350973 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 6 May 2020 15:55:07 +0200 Subject: [PATCH] :bug: Fix yield when not from original shred --- src/lib/shred.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.43.0