refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-07-15 23:39:55 +02:00
parent 1ad8193434
commit 24dd973053
9 changed files with 111 additions and 117 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ local m, public, private = Aux.module'control'
private.event_listeners = {}
private.threads = {}
public.thread_id = Aux.null
public.thread_id = nil
function public.on_event()
for listener, _ in m.event_listeners do
@@ -28,7 +28,7 @@ function public.on_update()
thread.k = nil
m.thread_id = thread_id
k()
m.thread_id = Aux.null
m.thread_id = nil
if not thread.k then
thread.killed = true
end