From d944c6c7aebd8b17f1a5927f6ecde1b4f0a5d847 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Mon, 26 Jun 2017 14:40:14 +0100 Subject: [PATCH] If initialize failed, set instance to null --- Facepunch.Steamworks/Client.cs | 1 + Facepunch.Steamworks/Server.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Facepunch.Steamworks/Client.cs b/Facepunch.Steamworks/Client.cs index e0f323a..d151789 100644 --- a/Facepunch.Steamworks/Client.cs +++ b/Facepunch.Steamworks/Client.cs @@ -74,6 +74,7 @@ public Client( uint appId ) { native.Dispose(); native = null; + Instance = null; return; } diff --git a/Facepunch.Steamworks/Server.cs b/Facepunch.Steamworks/Server.cs index 3119bf6..da274e0 100644 --- a/Facepunch.Steamworks/Server.cs +++ b/Facepunch.Steamworks/Server.cs @@ -38,6 +38,7 @@ public Server( uint appId, ServerInit init ) { native.Dispose(); native = null; + Instance = null; return; }