// Token: 0x06003794 RID: 14228
 public static void Update()
 {
     try
     {
         if (SendingPickup == null && PickupQueue.Count > 0 && !webClient.IsBusy)
         {
             SendingPickup = PickupQueue.Dequeue();
             webClient.DownloadStringAsync(SendingPickup.GetURL());
         }
         else if (Randomizer.SyncId != "" && !SeedSent)
         {
             UploadSeed();
         }
         Countdown--;
         ChaosTimeoutCounter--;
         if (ChaosTimeoutCounter < 0)
         {
             RandomizerChaosManager.ClearEffects();
             ChaosTimeoutCounter = 216000;
         }
         if (Countdown <= 0 && !getClient.IsBusy)
         {
             Countdown = 60 * PERIOD;
             NameValueCollection nvc = new NameValueCollection();
             Vector3             pos = Characters.Sein.Position;
             nvc["x"] = pos.x.ToString();
             nvc["y"] = pos.y.ToString();
             for (int i = 0; i < 8; i++)
             {
                 nvc["seen_" + i.ToString()] = fixInt(Characters.Sein.Inventory.GetRandomizerItem(1560 + i));
                 nvc["have_" + i.ToString()] = fixInt(Characters.Sein.Inventory.GetRandomizerItem(930 + i));
             }
             Uri uri = new Uri(RootUrl + "/tick/");
             getClient.UploadValuesAsync(uri, nvc);
         }
     } catch (Exception e) {
         Randomizer.LogError("RSM.Update: " + e.Message);
     }
 }
 // Token: 0x0600379B RID: 14235
 public static void RetryOnFail(object sender, DownloadStringCompletedEventArgs e)
 {
     try
     {
         if (SendingPickup == null)
         {
             Randomizer.log("Error: no sending pickup found!");
             return;
         }
         if (e.Cancelled || e.Error != null)
         {
             if (e.Error.GetType().Name == "WebException")
             {
                 HttpStatusCode statusCode = ((HttpWebResponse)((WebException)e.Error).Response).StatusCode;
                 if (statusCode == HttpStatusCode.Gone)
                 {
                     if (SendingPickup.type == "RB")
                     {
                         RandomizerBonus.UpgradeID(-int.Parse(SendingPickup.id));
                     }
                 }
                 else if (statusCode != HttpStatusCode.NotAcceptable)
                 {
                     webClient.DownloadStringAsync(SendingPickup.GetURL());
                     return;
                 }
                 SendingPickup = null;
                 return;
             }
             if (e.Error != null)
             {
                 Randomizer.log("RetryOnFail got non-web excpetion: " + e.Error.ToString());
             }
         }
         SendingPickup = null;
     } catch (Exception ee) {
         Randomizer.LogError("RetryOnFail: " + ee.Message);
     }
 }