From 30adac5e634f7e74f416e247c823b04d81470837 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sat, 18 Jul 2015 10:41:55 -0400 Subject: [PATCH] Properly restore state when errors occur during uuid update --- .../gmail/nossr50/runnables/database/UUIDUpdateAsyncTask.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/nossr50/runnables/database/UUIDUpdateAsyncTask.java b/src/main/java/com/gmail/nossr50/runnables/database/UUIDUpdateAsyncTask.java index c37bfc70c..4f893a45c 100644 --- a/src/main/java/com/gmail/nossr50/runnables/database/UUIDUpdateAsyncTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/database/UUIDUpdateAsyncTask.java @@ -70,6 +70,7 @@ public class UUIDUpdateAsyncTask extends BukkitRunnable { catch (Exception e) { // Handle 429 if (e.getMessage().contains("429")) { + size += userNamesSection.size(); try { Thread.sleep(LIMIT_PERIOD); } catch (InterruptedException ex) {