From 1ad3d154861a863a97c12e0a3096d49449aa82cd Mon Sep 17 00:00:00 2001 From: dhamster Date: Thu, 28 Mar 2024 17:13:38 -0400 Subject: [PATCH] Allow ProblemDetectedLocally to invoke Disconnect This change is already in FizzySteamworks NextClient --- NextClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NextClient.cs b/NextClient.cs index d7a681f..77a8ae9 100644 --- a/NextClient.cs +++ b/NextClient.cs @@ -140,7 +140,7 @@ private void OnConnectionStatusChanged(Connection conn, ConnectionInfo info) } } } - else if (info.State == ConnectionState.ClosedByPeer) + else if (info.State == ConnectionState.ClosedByPeer||info.State == ConnectionState.ProblemDetectedLocally) { Connected = false; OnDisconnected.Invoke(); @@ -188,4 +188,4 @@ public void FlushData() HostConnection.Flush(); } } -} \ No newline at end of file +}