From 556d282608a00230f51a0b5f079fbcd653d84698 Mon Sep 17 00:00:00 2001 From: wluker Date: Fri, 13 Mar 2020 17:28:05 -0400 Subject: [PATCH] Fixed async/thread bug This should just be a pointer, not a pointer-to-pointer. When a thread has exited, it emits the address of the thread-id to `CEU_INPUT__THREAD`, so only 1 deference should be used to get the thread-id back. --- src/lua/codes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/codes.lua b/src/lua/codes.lua index 31b6cfb4..73c2245f 100644 --- a/src/lua/codes.lua +++ b/src/lua/codes.lua @@ -1703,8 +1703,8 @@ if (]]..v..[[ != NULL) }) LINE(me, [[ { - CEU_THREADS_T** __ceu_casted = (CEU_THREADS_T**)_ceu_cur->params; - if (*(*(__ceu_casted)) == ]]..v..[[->id) { + CEU_THREADS_T* __ceu_casted = (CEU_THREADS_T*)_ceu_cur->params; + if (*(__ceu_casted) == ]]..v..[[->id) { break; /* this thread is terminating */ } }