mirror of https://github.com/zlatinb/muwire
offload deletion to disk IO thread
parent
49787fb4dc
commit
d3cfcef063
|
@ -149,9 +149,10 @@ class WatchedDirectoryManager {
|
||||||
log.warning("unshared a directory that wasn't watched? ${e.directory}")
|
log.warning("unshared a directory that wasn't watched? ${e.directory}")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
diskIO.submit({
|
||||||
File persistFile = new File(home, wd.getEncodedName() + ".json")
|
File persistFile = new File(home, wd.getEncodedName() + ".json")
|
||||||
persistFile.delete()
|
persistFile.delete()
|
||||||
|
} as Runnable)
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sync() {
|
private void sync() {
|
||||||
|
|
Loading…
Reference in New Issue