close interfaceDerma on shutdown
This commit is contained in:
parent
269dd2be19
commit
863cc5d480
@ -460,6 +460,9 @@ end
|
|||||||
local isShuttingDownManually = false
|
local isShuttingDownManually = false
|
||||||
hook.Add( "ShutDown", "CFC_DisconnectInterface_MarkShutdown", function()
|
hook.Add( "ShutDown", "CFC_DisconnectInterface_MarkShutdown", function()
|
||||||
isShuttingDownManually = true
|
isShuttingDownManually = true
|
||||||
|
if interfaceDerma then
|
||||||
|
interfaceDerma:Close()
|
||||||
|
end
|
||||||
end )
|
end )
|
||||||
|
|
||||||
hook.Add( "CFC_CrashTick", "CFC_DisconnectInterface_InterfaceUpdate", function( isCrashing, _timeDown, _apiState )
|
hook.Add( "CFC_CrashTick", "CFC_DisconnectInterface_InterfaceUpdate", function( isCrashing, _timeDown, _apiState )
|
||||||
|
Loading…
Reference in New Issue
Block a user