mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 07:00:03 +00:00
Update ClientProcess.luau
This commit is contained in:
parent
32fd45e010
commit
187510f73d
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ function ClientProcess.insertRequest(Identifier: string, timeout: number, ...: a
|
|||
local cancel = task.delay(timeout, function()
|
||||
task.spawn(yieldThread, nil)
|
||||
end)
|
||||
table.insert(clientRequestQueue[Identifier], { tostring(Key()), function(...: any)
|
||||
table.insert(clientRequestQueue[Identifier], { Key(), function(...: any)
|
||||
if (os.clock() - start) > timeout then return end
|
||||
task.cancel(cancel)
|
||||
task.spawn(yieldThread, ...)
|
||||
|
@ -213,4 +213,4 @@ function ClientProcess.start()
|
|||
end)
|
||||
end
|
||||
|
||||
return ClientProcess
|
||||
return ClientProcess
|
||||
|
|
Loading…
Reference in a new issue