feat: GC only if there's something to gc
This commit is contained in:
parent
926aaa4364
commit
cf85bb6901
|
@ -77,11 +77,9 @@ class Server:
|
||||||
|
|
||||||
Must be called periodically.
|
Must be called periodically.
|
||||||
"""
|
"""
|
||||||
self.run('goal.delete', {'stateIds': self.to_remove_goal_states})
|
if self.to_remove_goal_states:
|
||||||
self.to_remove_goal_states.clear()
|
self.run('goal.delete', {'stateIds': self.to_remove_goal_states})
|
||||||
|
self.to_remove_goal_states.clear()
|
||||||
def reset(self):
|
|
||||||
return self.run("reset", {})
|
|
||||||
|
|
||||||
def expr_type(self, expr: str) -> Expr:
|
def expr_type(self, expr: str) -> Expr:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue