mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
fix NullPointerException
This commit is contained in:
@@ -51,7 +51,9 @@ public class IrisEngineSVC implements IrisService {
|
|||||||
protected long loop() {
|
protected long loop() {
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
for (Engine key : cache.keySet()) {
|
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
|
if (now - last > 600000) { // 10 minutes
|
||||||
cache.remove(key);
|
cache.remove(key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user