Reverting ConnectionState.None handling to previous behaviour (for the callbacks)

This commit is contained in:
André Straubmeier 2020-08-18 14:34:37 +02:00
parent ea1408392b
commit 4a2eb22ec7
2 changed files with 2 additions and 4 deletions

View File

@ -49,8 +49,6 @@ namespace Steamworks
switch ( info.State ) switch ( info.State )
{ {
case ConnectionState.None:
break;
case ConnectionState.Connecting: case ConnectionState.Connecting:
OnConnecting( info ); OnConnecting( info );
break; break;
@ -59,6 +57,7 @@ namespace Steamworks
break; break;
case ConnectionState.ClosedByPeer: case ConnectionState.ClosedByPeer:
case ConnectionState.ProblemDetectedLocally: case ConnectionState.ProblemDetectedLocally:
case ConnectionState.None:
OnDisconnected( info ); OnDisconnected( info );
break; break;
} }

View File

@ -44,8 +44,6 @@ namespace Steamworks
{ {
switch ( info.State ) switch ( info.State )
{ {
case ConnectionState.None:
break;
case ConnectionState.Connecting: case ConnectionState.Connecting:
OnConnecting( connection, info ); OnConnecting( connection, info );
break; break;
@ -54,6 +52,7 @@ namespace Steamworks
break; break;
case ConnectionState.ClosedByPeer: case ConnectionState.ClosedByPeer:
case ConnectionState.ProblemDetectedLocally: case ConnectionState.ProblemDetectedLocally:
case ConnectionState.None:
OnDisconnected( connection, info ); OnDisconnected( connection, info );
break; break;
} }