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
+2 -1
View File
@@ -12,7 +12,8 @@ do
local scan_states = T
function M.start(params)
for old_state in present(scan_states[params.type]) do
local old_state = scan_states[params.type]
if old_state then
abort(old_state.id)
end
do (params.on_scan_start or nop)() end