mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-07-22 21:21:42 +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 )
|
switch ( info.State )
|
||||||
{
|
{
|
||||||
|
case ConnectionState.None:
|
||||||
|
break;
|
||||||
case ConnectionState.Connecting:
|
case ConnectionState.Connecting:
|
||||||
OnConnecting( info );
|
OnConnecting( info );
|
||||||
break;
|
break;
|
||||||
@ -57,7 +59,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,8 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
switch ( info.State )
|
switch ( info.State )
|
||||||
{
|
{
|
||||||
|
case ConnectionState.None:
|
||||||
|
break;
|
||||||
case ConnectionState.Connecting:
|
case ConnectionState.Connecting:
|
||||||
if ( !Connecting.Contains( connection ) )
|
if ( !Connecting.Contains( connection ) )
|
||||||
{
|
{
|
||||||
@ -65,7 +67,6 @@ namespace Steamworks
|
|||||||
break;
|
break;
|
||||||
case ConnectionState.ClosedByPeer:
|
case ConnectionState.ClosedByPeer:
|
||||||
case ConnectionState.ProblemDetectedLocally:
|
case ConnectionState.ProblemDetectedLocally:
|
||||||
case ConnectionState.None:
|
|
||||||
if ( Connecting.Contains( connection ) || Connected.Contains( connection ) )
|
if ( Connecting.Contains( connection ) || Connected.Contains( connection ) )
|
||||||
{
|
{
|
||||||
Connecting.Remove( connection );
|
Connecting.Remove( connection );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user