Skip to content

Commit

Permalink
Fix 2: "Failed to retrieve real time from API, falling back to local …
Browse files Browse the repository at this point in the history
…time"

Added a longer wait and higher fail count.
  • Loading branch information
7D7-Development authored Sep 8, 2024
1 parent 2690b5b commit 8eb3e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ CreateThread(function()
end)
end
while realTimeFromApi == nil do
if failedCount > 10 then
if failedCount > 15 then
print("Failed to retrieve real time from API, falling back to local time")
break
end
failedCount = failedCount + 1
Wait(100)
Wait(1000)
end
if realTimeFromApi ~= nil then
newBaseTime = realTimeFromApi
Expand Down

0 comments on commit 8eb3e7e

Please sign in to comment.