From 32c1e5fc5b59b5b3449fe0c5d6bcbab365ec353f Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sun, 6 Mar 2016 15:36:10 +0100 Subject: [PATCH] small control refactoring --- control.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/control.lua b/control.lua index 08e7875..7865515 100644 --- a/control.lua +++ b/control.lua @@ -94,7 +94,9 @@ do end function public.kill_thread(thread_id) - private.threads[thread_id].killed = true + if thread_id and private.threads[thread_id] then + private.threads[thread_id].killed = true + end end function public.wait(...)