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}")
|
||||
return
|
||||
}
|
||||
|
||||
File persistFile = new File(home, wd.getEncodedName() + ".json")
|
||||
persistFile.delete()
|
||||
diskIO.submit({
|
||||
File persistFile = new File(home, wd.getEncodedName() + ".json")
|
||||
persistFile.delete()
|
||||
} as Runnable)
|
||||
}
|
||||
|
||||
private void sync() {
|
||||
|
|
Loading…
Reference in New Issue