Clear all state if the tunnel is closed

This commit is contained in:
zab2
2019-03-28 17:22:08 +00:00
parent 910a0d859d
commit 440d5571fa

View File

@@ -147,8 +147,15 @@ class AccessFilter implements IncomingConnectionFilter {
super(context.simpleTimer2(), PURGE_INTERVAL);
}
public void timeReached() {
if (!task.isOpen())
if (!task.isOpen()) {
synchronized(knownDests) {
knownDests.clear();
}
synchronized(unknownDests) {
unknownDests.clear();
}
return;
}
purge();
schedule(PURGE_INTERVAL);
}