Commits

Anonymous committed 907096d

If you're going to send to new listeners, you'd better add them to the bus so that 'SimplePlugin.subscribe()' works for those new channels

Comments (0)

Files changed (1)

cherrypy/process/plugins.py

         self.threads = {}
         SimplePlugin.__init__(self, bus)
         self.bus.listeners.setdefault('acquire_thread', set())
+        self.bus.listeners.setdefault('start_thread', set())
         self.bus.listeners.setdefault('release_thread', set())
-    
+        self.bus.listeners.setdefault('stop_thread', set())
+
     def acquire_thread(self):
         """Run 'start_thread' listeners for the current thread.