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