Properly restore state when errors occur during uuid update

This commit is contained in:
t00thpick1 2015-07-18 10:41:55 -04:00
parent 93ad040936
commit 30adac5e63

View File

@ -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) {