From 93fc5950305d7cdf0362af341e22a179f13dccd8 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Thu, 4 Aug 2022 01:32:54 +1000 Subject: [PATCH] fix(client/streaming): timeout --- resource/streaming/client.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resource/streaming/client.lua b/resource/streaming/client.lua index 904e903..06f90da 100644 --- a/resource/streaming/client.lua +++ b/resource/streaming/client.lua @@ -2,7 +2,11 @@ local function request(native, hasLoaded, requestType, name, timeout) native(name) if coroutine.running() then - for i = 1, timeout or 5 do + if not timeout then + timeout = 500 + end + + for i = 1, timeout do Wait(0) if hasLoaded(name) then return name