9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-31 04:46:40 +00:00

fix NullPointerException

This commit is contained in:
CrazyDev22
2023-12-21 12:34:14 +01:00
parent 4580f8d9a4
commit 4595fea7d7

View File

@@ -51,7 +51,9 @@ public class IrisEngineSVC implements IrisService {
protected long loop() {
long now = System.currentTimeMillis();
for (Engine key : cache.keySet()) {
long last = cache.get(key);
Long last = cache.get(key);
if (last == null)
continue;
if (now - last > 600000) { // 10 minutes
cache.remove(key);
}