reduce priority of file persister thread

pull/24/head
Zlatin Balevsky 2019-10-07 11:59:51 +01:00
parent 33fe755b60
commit 20b51b78a0
1 changed files with 2 additions and 0 deletions

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 {