summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-28 13:55:21 +0000
committerErik Johnston <erik@matrix.org>2019-03-28 14:05:05 +0000
commit4e5f0f7ca098022b718233d9b429247e6228f31d (patch)
tree0952e64bddbfdbeee32e880fe4a2bccb7ac28ddb /synapse/handlers/presence.py
parentReview comments (diff)
downloadsynapse-4e5f0f7ca098022b718233d9b429247e6228f31d.tar.xz
Use an assert
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 4e71e10295..e85c49742d 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -939,8 +939,7 @@ class PresenceHandler(object):
 
         @defer.inlineCallbacks
         def _process_presence():
-            if self._event_processing:
-                return
+            assert not self._event_processing
 
             self._event_processing = True
             try: