Ensures that every persisted agent is managed

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-04-14 17:00:35 +02:00
parent 2da9b91fce
commit 8a367daec8

View File

@ -105,5 +105,8 @@ public class ORM {
} catch (SQLException e) {
e.printStackTrace();
}
if (!_agents.containsKey(agent.getId())) {
_agents.put(agent.getId(), agent);
}
}
}