Small improvement

This commit is contained in:
M66B
2023-01-06 08:51:21 +01:00
parent c4a2bfef32
commit 3eeae2a981
2 changed files with 6 additions and 2 deletions

View File

@@ -3099,7 +3099,11 @@ public class Helper {
// Miscellaneous
static void gc() {
if (BuildConfig.DEBUG) {
gc(false);
}
static void gc(boolean force) {
if (force || BuildConfig.DEBUG) {
Runtime.getRuntime().gc();
try {
Thread.sleep(50);