From 1a1809ba405aa494d45e4fc9afbf2400ba43ede3 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 28 Feb 2020 14:13:47 +0000 Subject: [PATCH] Fixed calling StreamServer.Shutdown clearing client interfaces too --- Facepunch.Steamworks/Utility/SteamInterface.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/Utility/SteamInterface.cs b/Facepunch.Steamworks/Utility/SteamInterface.cs index 44ce6b8..a8b13da 100644 --- a/Facepunch.Steamworks/Utility/SteamInterface.cs +++ b/Facepunch.Steamworks/Utility/SteamInterface.cs @@ -85,8 +85,15 @@ namespace Steamworks internal override void DestroyInterface( bool server ) { - InterfaceClient = null; - InterfaceServer = null; + if ( !server ) + { + InterfaceClient = null; + } + + if ( server ) + { + InterfaceServer = null; + } } }