refactoring, bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-11-09 02:08:45 +01:00
parent c7d2284b3d
commit 05fb051bd4
18 changed files with 109 additions and 99 deletions
+4 -2
View File
@@ -57,13 +57,15 @@ do
end
function M.kill_listener(listener_id)
for listener in present(listeners[listener_id]) do
local listener = listeners[listener_id]
if listener then
listener.killed = true
end
end
function M.kill_thread(thread_id)
for thread in present(threads[thread_id]) do
local thread = threads[thread_id]
if thread then
thread.killed = true
end
end