mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
Trying to fix ge
This commit is contained in:
parent
b86777e190
commit
ab93cc7865
2 changed files with 11 additions and 3 deletions
|
|
@ -78,10 +78,13 @@ public final class SystemTermination {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
while(!Repository.getDisconnectionQueue().isEmpty()){
|
||||
Repository.getDisconnectionQueue().update();
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
Repository.getDisconnectionQueue().update();
|
||||
try {
|
||||
Thread.sleep(3_000);
|
||||
} catch (Exception ignored){}
|
||||
GrandExchangeDatabase.save();
|
||||
OfferManager.save();
|
||||
SystemLogger.flushLogs();
|
||||
|
|
|
|||
|
|
@ -37,6 +37,11 @@ class DisconnectionQueue {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
fun isEmpty(): Boolean{
|
||||
return queue.isEmpty()
|
||||
}
|
||||
|
||||
/**
|
||||
* Finishes a disconnection.
|
||||
* @param entry The entry.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue