Skip to content

Commit

Permalink
Fix minor issues with server list. Fixes #488.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakov-h committed Nov 26, 2017
1 parent 9677726 commit df7f785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SteamKit2/SteamKit2/Networking/Steam3/TcpConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ private void ConnectCompleted(bool success)

netThread = new Thread(NetLoop);
netThread.Name = "TcpConnection Thread";

CurrentEndPoint = socket.RemoteEndPoint;
}

netThread.Start();
Expand Down
2 changes: 1 addition & 1 deletion SteamKit2/SteamKit2/Steam/CMClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void Disconnected( object sender, DisconnectedEventArgs e )
{
IsConnected = false;

if ( !e.UserInitiated )
if ( !e.UserInitiated && !ExpectDisconnection )
{
Servers.TryMark( connection.CurrentEndPoint, connection.ProtocolTypes, ServerQuality.Bad );
}
Expand Down

0 comments on commit df7f785

Please sign in to comment.