added timeout for scanning

This commit is contained in:
Manuel Simon Hirsig
2016-08-02 13:10:00 +02:00
parent bf327cc50e
commit 82faab92e7
7 changed files with 126 additions and 103 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ function private.process()
local stacking_complete
local c = Aux.control.wait_for(function(slot)
local c = Aux.control.await(function(slot)
if slot then
return m.post_auction(slot, m.process)
else
@@ -34,7 +34,7 @@ function private.post_auction(slot, k)
StartAuction(max(1, Aux.round(m.state.unit_start_price * item_info.aux_quantity)), Aux.round(m.state.unit_buyout_price * item_info.aux_quantity), m.state.duration)
local c = Aux.control.wait_for(function()
local c = Aux.control.await(function()
m.state.posted = m.state.posted + 1
return k()
end)