Browse code

Reset notified_by list per serialized batch

Fixes the case where a handler attempts to run for every batch after any
batch has notified it, regardless of whether the current batch did.

Daniel Hokka Zakrisson authored on 2012/11/29 06:04:44
Showing 1 changed files
... ...
@@ -444,6 +444,7 @@ class PlayBook(object):
444 444
                     self.inventory.restrict_to(handler.notified_by)
445 445
                     self._run_task(play, handler, True)
446 446
                     self.inventory.lift_restriction()
447
+                    handler.notified_by = []
447 448
 
448 449
             self.inventory.lift_also_restriction()
449 450