Browse Source

Properly restore state when errors occur during uuid update

t00thpick1 10 years ago
parent
commit
30adac5e63

+ 1 - 0
src/main/java/com/gmail/nossr50/runnables/database/UUIDUpdateAsyncTask.java

@@ -70,6 +70,7 @@ public class UUIDUpdateAsyncTask extends BukkitRunnable {
             catch (Exception e) {
             catch (Exception e) {
                 // Handle 429
                 // Handle 429
                 if (e.getMessage().contains("429")) {
                 if (e.getMessage().contains("429")) {
+                    size += userNamesSection.size();
                     try {
                     try {
                         Thread.sleep(LIMIT_PERIOD);
                         Thread.sleep(LIMIT_PERIOD);
                     } catch (InterruptedException ex) {
                     } catch (InterruptedException ex) {