From 81a9057779b4a0e4e9d4dbe74577df0d2986278b Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Mon, 21 Jul 2014 11:01:36 -0600 Subject: [PATCH] Don't attempt cm0 servers --- DepotDownloader/Steam3Session.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index a828aeb0..7ef71b89 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -340,28 +340,13 @@ namespace DepotDownloader } } - private static int retry_count = 0; - private void DisconnectedCallback(SteamClient.DisconnectedCallback disconnected) { if ((!bConnected && !bConnecting) || bAborted) return; Console.WriteLine("Reconnecting"); - - if ( ++retry_count < 2 ) - { - steamClient.Connect(); - } - else - { - var addresses = Dns.GetHostAddresses( "cm0.steampowered.com" ); - Random random = new Random(); - - var addr = addresses[ random.Next( addresses.Length ) ]; - - steamClient.Connect( new IPEndPoint( addr, 27017 /* expose this as a constant someday? */ ) ); - } + steamClient.Connect(); } private void LogOnCallback(SteamUser.LoggedOnCallback loggedOn)