From 6b3e5650f6243bb765fdd992b75551ea3bd2b915 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 24 Feb 2016 09:00:49 +0100 Subject: [PATCH] scanning performance improvement --- core.lua | 2 +- scan.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core.lua b/core.lua index fc5b8b2..1b3e027 100644 --- a/core.lua +++ b/core.lua @@ -1,4 +1,4 @@ -AuxVersion = '2.4.30' +AuxVersion = '2.4.31' Aux = { blizzard_ui_shown = false, diff --git a/scan.lua b/scan.lua index a6c3ece..e2406cd 100644 --- a/scan.lua +++ b/scan.lua @@ -80,7 +80,7 @@ function wait_for_results(k) last_update = GetTime() end) listener:start() - Aux.control.as_soon_as(function() return last_update and GetTime() - last_update > 5 or owner_data_complete end, function() + Aux.control.as_soon_as(function() return owner_data_complete or last_update and GetTime() - last_update > 5 end, function() listener:stop() ok = true end)