ソースを参照

Add an explanatory comment about rebuffering an event in finish().

Chris McDonough 18 年 前
コミット
92a92318e7
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/supervisor/process.py

+ 2 - 0
src/supervisor/process.py

@@ -415,6 +415,8 @@ class Subprocess:
         # if we're an event listener), notify the event system that this
         # event was rejected so it can be processed again.
         if self.event is not None:
+            # Note: this should only be true if we were in the BUSY
+            # state when finish() was called.
             events.notify(events.EventRejectedEvent(self, self.event))
             self.event = None