From 20b51b78a01bd0dd0fa52423249b0b663db1e175 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Mon, 7 Oct 2019 11:59:51 +0100 Subject: [PATCH] reduce priority of file persister thread --- .../main/groovy/com/muwire/core/files/PersisterService.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy index ede1fffc..ddb2c277 100644 --- a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy @@ -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 {