reduce priority of file persister thread

This commit is contained in:
Zlatin Balevsky
2019-10-07 11:59:51 +01:00
parent 33fe755b60
commit 20b51b78a0

View File

@@ -46,6 +46,8 @@ class PersisterService extends Service {
}
void load() {
Thread.currentThread().setPriority(Thread.MIN_PRIORITY)
if (location.exists() && location.isFile()) {
def slurper = new JsonSlurper()
try {