Fix FSMManager.unsubscribe_predicate()

This commit is contained in:
Kristóf Tóth 2018-02-26 16:20:28 +01:00
parent 78b689f650
commit 250b9da6d6

View File

@ -56,7 +56,7 @@ class FSMManager:
self.trigger_predicates[trigger].append(predicate) self.trigger_predicates[trigger].append(predicate)
def unsubscribe_predicate(self, trigger, predicate): def unsubscribe_predicate(self, trigger, predicate):
self.trigger_predicates[trigger].append(predicate) self.trigger_predicates[trigger].remove(predicate)
class FSMUpdater: class FSMUpdater: