aboutsummaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2025-10-17 03:55:59 -0500
committeramelia squires <[email protected]>2025-10-17 03:55:59 -0500
commitc98e641ed9169cc09e6fe44c1bee2b28d5d694b2 (patch)
tree229136c146892fe6538f934dad1a7c6f0062f5fa /src/thread.c
parent8705ace5b71a090fc6c6ce745b2637c74b277b50 (diff)
set done on res()
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c
index add1287..617d63f 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -163,6 +163,7 @@ int l_res(lua_State* L){
lua_settop(L, ot);
}
+ info->done = 1;
pthread_mutex_unlock(&*info->lock);
pthread_exit(NULL);