Update init.luau

This commit is contained in:
xArshy 2024-04-02 12:34:23 +04:00 committed by GitHub
parent 87e2a8d0ec
commit 6316cb0724
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,7 @@ function ServerProcess.insertRequest(Identifier: string, timeout: number, player
local cancel = task.delay(timeout, function() local cancel = task.delay(timeout, function()
task.spawn(yieldThread, nil) task.spawn(yieldThread, nil)
end) end)
table.insert(serverRequestQueue[Identifier][player], { tostring(Key()), function(...: any) table.insert(serverRequestQueue[Identifier][player], { Key(), function(...: any)
if (os.clock() - start) > timeout then return end if (os.clock() - start) > timeout then return end
task.cancel(cancel) task.cancel(cancel)
task.spawn(yieldThread, ...) task.spawn(yieldThread, ...)