working on big scan/control refactoring
This commit is contained in:
@@ -49,7 +49,7 @@ end
|
||||
|
||||
function private.wait_for_results(k)
|
||||
if private.current_thread().params.type == 'bidder' then
|
||||
return private.wait_for_bidder_results(k)
|
||||
return Aux.control.wait_until(function() return Aux.bids_loaded end, k)
|
||||
elseif private.current_thread().params.type == 'owner' then
|
||||
return private.wait_for_owner_results(k)
|
||||
elseif private.current_thread().params.type == 'list' then
|
||||
@@ -57,14 +57,6 @@ function private.wait_for_results(k)
|
||||
end
|
||||
end
|
||||
|
||||
function private.wait_for_bidder_results(k)
|
||||
if Aux.bids_loaded then
|
||||
return k()
|
||||
else -- recurse on the next update
|
||||
return Aux.control.wait(private.wait_for_bidder_results, k)
|
||||
end
|
||||
end
|
||||
|
||||
function private.wait_for_owner_results(k)
|
||||
local updated
|
||||
if private.current_thread().page == Aux.current_owner_page then
|
||||
|
||||
Reference in New Issue
Block a user