Clear interface on shutdown

This commit is contained in:
Brandon Sturgeon 2023-01-05 12:27:15 -08:00
parent 1b85661f4f
commit ed1788a1c1
No known key found for this signature in database
GPG Key ID: 93451558FC64495C

View File

@ -520,6 +520,13 @@ local function createInterface()
end
hook.Add( "ShutDown", "CFC_DisconnectInterface_Shutdown", function()
if interfaceDerma then
interfaceDerma:Close()
end
end )
hook.Add( "CFC_CrashTick", "CFC_DisconnectInterface_InterfaceUpdate", function( isCrashing, _timeDown, _apiState )
timeDown = _timeDown
if _apiState ~= CFCCrashAPI.PINGING_API then