From 4a2eb22ec7484d839c9edfeefb244d412dc61fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Straubmeier?= Date: Tue, 18 Aug 2020 14:34:37 +0200 Subject: [PATCH] Reverting ConnectionState.None handling to previous behaviour (for the callbacks) --- Facepunch.Steamworks/Networking/ConnectionManager.cs | 3 +-- Facepunch.Steamworks/Networking/SocketManager.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Facepunch.Steamworks/Networking/ConnectionManager.cs b/Facepunch.Steamworks/Networking/ConnectionManager.cs index b251808..86a194a 100644 --- a/Facepunch.Steamworks/Networking/ConnectionManager.cs +++ b/Facepunch.Steamworks/Networking/ConnectionManager.cs @@ -49,8 +49,6 @@ namespace Steamworks switch ( info.State ) { - case ConnectionState.None: - break; case ConnectionState.Connecting: OnConnecting( info ); break; @@ -59,6 +57,7 @@ namespace Steamworks break; case ConnectionState.ClosedByPeer: case ConnectionState.ProblemDetectedLocally: + case ConnectionState.None: OnDisconnected( info ); break; } diff --git a/Facepunch.Steamworks/Networking/SocketManager.cs b/Facepunch.Steamworks/Networking/SocketManager.cs index 637d875..0c4a3ad 100644 --- a/Facepunch.Steamworks/Networking/SocketManager.cs +++ b/Facepunch.Steamworks/Networking/SocketManager.cs @@ -44,8 +44,6 @@ namespace Steamworks { switch ( info.State ) { - case ConnectionState.None: - break; case ConnectionState.Connecting: OnConnecting( connection, info ); break; @@ -54,6 +52,7 @@ namespace Steamworks break; case ConnectionState.ClosedByPeer: case ConnectionState.ProblemDetectedLocally: + case ConnectionState.None: OnDisconnected( connection, info ); break; }