1. Russell Hay
  2. ginsfsm

Commits

Ginés Martínez Sánchez  committed 4b2200c

better comparing subcribers list

  • Participants
  • Parent commits 9b3a886
  • Branches default

Comments (0)

Files changed (1)

File ginsfsm/gobj.py

View file
         if not isinstance(event_name, (list, tuple)):
             event_name = (event_name,)
         for sub in self._dl_subscriptions:
-            if sub.event_name == event_name and \
+            if list(sub.event_name).sort() == list(event_name).sort() and \
                 sub.subscriber_gobj == subscriber_gobj:
                     return sub