refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-10-24 20:50:10 +02:00
parent 489c528327
commit 1033d15eae
29 changed files with 189 additions and 189 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ function process()
return stop()
end
function public.stop()
function M.stop()
if state then
kill_thread(state.thread_id)
local callback, slot = state.callback, state.target_slot
@@ -116,7 +116,7 @@ function public.stop()
end
end
function public.start(item_key, size, callback)
function M.start(item_key, size, callback)
stop()
state = {
thread_id = thread(process),