mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Best effort to avoid cache corruption if process is killed or crashes
This commit is contained in:
parent
5777a700bc
commit
c9c4e84ee4
@ -149,6 +149,9 @@ public class License {
|
||||
return WebRequest.post(url, psm.getBytes(UTF_8), "application/octet-stream", getRequestParameters());
|
||||
}).expire(Cache.ONE_MONTH).get();
|
||||
|
||||
// flush all cache from memory to the disk store
|
||||
cache.flush();
|
||||
|
||||
if (getInteger(json, "status") != 200) {
|
||||
throw new IllegalStateException(getString(json, "message"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user