small bugfix
This commit is contained in:
@@ -36,13 +36,18 @@ function public.start(params)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function public.abort(type)
|
function public.abort(type)
|
||||||
|
local aborted_threads = {}
|
||||||
for t, thread in pairs(threads) do
|
for t, thread in pairs(threads) do
|
||||||
if not type or type == t then
|
if not type or type == t then
|
||||||
if thread.params.on_abort then
|
|
||||||
thread.params.on_abort()
|
|
||||||
end
|
|
||||||
threads[t] = nil
|
|
||||||
Aux.control.kill_thread(thread.id)
|
Aux.control.kill_thread(thread.id)
|
||||||
|
threads[t] = nil
|
||||||
|
tinsert(aborted_threads, thread)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, thread in ipairs(aborted_threads) do
|
||||||
|
if thread.params.on_abort then
|
||||||
|
thread.params.on_abort()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -896,6 +896,7 @@ do
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
state = SEARCHING
|
||||||
Aux.scan_util.find(
|
Aux.scan_util.find(
|
||||||
record,
|
record,
|
||||||
private.status_bar,
|
private.status_bar,
|
||||||
@@ -949,7 +950,6 @@ do
|
|||||||
if not selection then
|
if not selection then
|
||||||
state = IDLE
|
state = IDLE
|
||||||
elseif selection and state == IDLE then
|
elseif selection and state == IDLE then
|
||||||
state = SEARCHING
|
|
||||||
private.find_auction(selection.record)
|
private.find_auction(selection.record)
|
||||||
elseif state == FOUND and not private.test(selection.record)(found_index) then
|
elseif state == FOUND and not private.test(selection.record)(found_index) then
|
||||||
private.buyout_button:Disable()
|
private.buyout_button:Disable()
|
||||||
|
|||||||
Reference in New Issue
Block a user