scan bugfix/refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-03-22 20:08:11 +01:00
parent 178aa574ce
commit 0f3de435d2
7 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -346,13 +346,13 @@ function m.find(auction_record, status_bar, on_abort, on_failure, on_success)
status_bar:update_status(0, 0)
status_bar:set_text('Searching auction...')
end,
on_read_auction = function(auction_info, ctrl)
if test(auction_info.index) then
on_auction = function(auction_record, ctrl)
if test(auction_record.index) then
found = true
ctrl.suspend()
status_bar:update_status(100, 100)
status_bar:set_text('Auction found')
return on_success(auction_info.index)
return on_success(auction_record.index)
end
end,
on_abort = function()