mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
increase authToken timeout from 5 sec to 1 min
This commit is contained in:
@@ -53,13 +53,13 @@ if isServer() then
|
|||||||
|
|
||||||
if authCooldown[src] then
|
if authCooldown[src] then
|
||||||
debugPrint("^1Auth^7: ^3Cooldown active^7 for Player ^1"..src.."^7, ignoring additional auth request")
|
debugPrint("^1Auth^7: ^3Cooldown active^7 for Player ^1"..src.."^7, ignoring additional auth request")
|
||||||
return ""
|
return AuthEvent
|
||||||
end
|
end
|
||||||
|
|
||||||
debugPrint("^1Auth^7: ^2Player Source^7: "..src.." ^2requested ^3AuthEvent^7", AuthEvent)
|
debugPrint("^1Auth^7: ^2Player Source^7: "..src.." ^2requested ^3AuthEvent^7", AuthEvent)
|
||||||
|
|
||||||
authCooldown[src] = true
|
authCooldown[src] = true
|
||||||
SetTimeout(5000, function() -- 5 second cooldown
|
SetTimeout(60000, function() -- 1 minute cooldown
|
||||||
authCooldown[src] = nil
|
authCooldown[src] = nil
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user