Ensures that every persisted agent is managed
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -105,5 +105,8 @@ public class ORM {
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (!_agents.containsKey(agent.getId())) {
|
||||
_agents.put(agent.getId(), agent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user