working on big scan/control refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-02-25 17:28:45 +01:00
parent 0d9b37f4d5
commit d458d82813
+1 -9
View File
@@ -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