mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
fix serdes
This commit is contained in:
parent
598c30c147
commit
b4ee5dc1e3
1 changed files with 8 additions and 6 deletions
|
@ -20,6 +20,7 @@ return function(Identifier: string, timeout: number?): number
|
||||||
task.spawn(yieldThread, nil)
|
task.spawn(yieldThread, nil)
|
||||||
error(`Serdes: {Identifier} is taking too long to retrieve, seems like not replicated on server.`, 2)
|
error(`Serdes: {Identifier} is taking too long to retrieve, seems like not replicated on server.`, 2)
|
||||||
end)
|
end)
|
||||||
|
task.spawn(function()
|
||||||
while coroutine.status(cancel) ~= "dead" and task.wait(0.5) do -- let it loop for yields!
|
while coroutine.status(cancel) ~= "dead" and task.wait(0.5) do -- let it loop for yields!
|
||||||
if (Event:GetAttribute(Identifier)) then
|
if (Event:GetAttribute(Identifier)) then
|
||||||
task.cancel(cancel)
|
task.cancel(cancel)
|
||||||
|
@ -27,6 +28,7 @@ return function(Identifier: string, timeout: number?): number
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
return coroutine.yield() -- yield
|
return coroutine.yield() -- yield
|
||||||
end
|
end
|
||||||
return Event:GetAttribute(Identifier)
|
return Event:GetAttribute(Identifier)
|
||||||
|
|
Loading…
Reference in a new issue