Trying to fix ge
This commit is contained in:
@@ -78,10 +78,13 @@ public final class SystemTermination {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
while(!Repository.getDisconnectionQueue().isEmpty()){
|
||||||
|
Repository.getDisconnectionQueue().update();
|
||||||
|
try {
|
||||||
|
Thread.sleep(100);
|
||||||
|
} catch (Exception ignored) {}
|
||||||
|
}
|
||||||
Repository.getDisconnectionQueue().update();
|
Repository.getDisconnectionQueue().update();
|
||||||
try {
|
|
||||||
Thread.sleep(3_000);
|
|
||||||
} catch (Exception ignored){}
|
|
||||||
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user