summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-12-09 11:00:22 -0500
committerGitHub <noreply@github.com>2018-12-09 11:00:22 -0500
commit4515443ffb0db6f00da60b7a74c4ce08f5db8406 (patch)
tree24bdefdee5db299351c49d85da3083983309dc15
parent54e15a5d2c91b11ab535fe4026e909fb01082e4c (diff)
parentc288579828432f949ef1acbd11587cf68eb2a9f8 (diff)
downloadcherrypy-git-4515443ffb0db6f00da60b7a74c4ce08f5db8406.tar.gz
Merge pull request #1759 from duper51/duper51-patch-1
publish should be called when the state is changed
-rw-r--r--CHANGES.rst6
-rw-r--r--cherrypy/process/wspbus.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 8dc1af56..9da7afa8 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,9 @@
+v18.1.0
+-------
+
+* :issue:`1758` via :pr:`1759`: In the bus, when awaiting a
+ state change, only publish after the state has changed.
+
v18.0.1
-------
diff --git a/cherrypy/process/wspbus.py b/cherrypy/process/wspbus.py
index 8f762ef0..1f1d6577 100644
--- a/cherrypy/process/wspbus.py
+++ b/cherrypy/process/wspbus.py
@@ -375,7 +375,7 @@ class Bus(object):
while self.state not in states:
time.sleep(interval)
- self.publish(channel)
+ self.publish(channel)
def _do_execv(self):
"""Re-execute the current process.