From 796bdfdf7496e6ceb28da551e790328eecf96ef0 Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Mon, 18 Sep 2017 18:51:34 +0200 Subject: [PATCH] perf: early return when whitlisted found Closes https://github.com/ESX-Org/esx_whitelist/issues/3 --- server/main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/server/main.lua b/server/main.lua index 65185a32..1f36f6df 100644 --- a/server/main.lua +++ b/server/main.lua @@ -34,6 +34,7 @@ AddEventHandler('playerConnecting', function (playerName, setKickReason) for i = 1, #WhiteList, 1 do if (tostring(WhiteList[i]) == tostring(steamID)) then whitelisted = true + break end end