mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 07:08:05 +03:00
Handle ConnectionState.None similar to the examples
This commit is contained in:
parent
498c1b9a32
commit
943c4f9a30
@ -49,6 +49,8 @@ namespace Steamworks
|
||||
|
||||
switch ( info.State )
|
||||
{
|
||||
case ConnectionState.None:
|
||||
break;
|
||||
case ConnectionState.Connecting:
|
||||
OnConnecting( info );
|
||||
break;
|
||||
@ -57,7 +59,6 @@ namespace Steamworks
|
||||
break;
|
||||
case ConnectionState.ClosedByPeer:
|
||||
case ConnectionState.ProblemDetectedLocally:
|
||||
case ConnectionState.None:
|
||||
OnDisconnected( info );
|
||||
break;
|
||||
}
|
||||
|
@ -46,6 +46,8 @@ namespace Steamworks
|
||||
{
|
||||
switch ( info.State )
|
||||
{
|
||||
case ConnectionState.None:
|
||||
break;
|
||||
case ConnectionState.Connecting:
|
||||
if ( !Connecting.Contains( connection ) )
|
||||
{
|
||||
@ -65,7 +67,6 @@ namespace Steamworks
|
||||
break;
|
||||
case ConnectionState.ClosedByPeer:
|
||||
case ConnectionState.ProblemDetectedLocally:
|
||||
case ConnectionState.None:
|
||||
if ( Connecting.Contains( connection ) || Connected.Contains( connection ) )
|
||||
{
|
||||
Connecting.Remove( connection );
|
||||
|
Loading…
x
Reference in New Issue
Block a user