Skip to content

Commit

Permalink
Increase Netstream timeout to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
marchc1 committed Aug 10, 2024
1 parent 22a220d commit 66ac5f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/starfall/sflib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ local dgetmeta = debug.getmetatable
local TypeID = TypeID
local IsValid = FindMetaTable("Entity").IsValid

hook.Add("Initialize", "SF_Initialize_SetNetstreamParams", function()
net.Stream.Timeout = 30
end)

-- Make sure this is done after metatables have been set
hook.Add("InitPostEntity","SF_SanitizeTypeMetatables",function()
local function sanitizeTypeMeta(theType, myMeta)
Expand Down

0 comments on commit 66ac5f8

Please sign in to comment.