mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
Disable gc
This commit is contained in:
parent
db712cace2
commit
f7c840cffc
1 changed files with 7 additions and 5 deletions
|
@ -1672,11 +1672,13 @@ public class Helper {
|
||||||
// Miscellaneous
|
// Miscellaneous
|
||||||
|
|
||||||
static void gc() {
|
static void gc() {
|
||||||
Runtime.getRuntime().gc();
|
if (BuildConfig.DEBUG) {
|
||||||
try {
|
Runtime.getRuntime().gc();
|
||||||
Thread.sleep(50);
|
try {
|
||||||
} catch (InterruptedException e) {
|
Thread.sleep(50);
|
||||||
e.printStackTrace();
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue