mirror of https://github.com/zlatinb/muwire
reduce priority of file persister thread
parent
33fe755b60
commit
20b51b78a0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue