Trying to fix ge

This commit is contained in:
ceikry
2021-07-21 21:48:34 -05:00
parent e74bbd9234
commit 8b3ce282c8
2 changed files with 11 additions and 3 deletions
@@ -78,10 +78,13 @@ public final class SystemTermination {
e.printStackTrace(); e.printStackTrace();
} }
} }
while(!Repository.getDisconnectionQueue().isEmpty()){
Repository.getDisconnectionQueue().update(); Repository.getDisconnectionQueue().update();
try { try {
Thread.sleep(3_000); Thread.sleep(100);
} catch (Exception ignored) {} } catch (Exception ignored) {}
}
Repository.getDisconnectionQueue().update();
GrandExchangeDatabase.save(); GrandExchangeDatabase.save();
OfferManager.save(); OfferManager.save();
SystemLogger.flushLogs(); SystemLogger.flushLogs();
@@ -37,6 +37,11 @@ class DisconnectionQueue {
} }
} }
fun isEmpty(): Boolean{
return queue.isEmpty()
}
/** /**
* Finishes a disconnection. * Finishes a disconnection.
* @param entry The entry. * @param entry The entry.