diff options
author | Erik Johnston <erik@matrix.org> | 2019-03-28 13:55:21 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-03-28 14:05:05 +0000 |
commit | 4e5f0f7ca098022b718233d9b429247e6228f31d (patch) | |
tree | 0952e64bddbfdbeee32e880fe4a2bccb7ac28ddb /synapse/handlers | |
parent | Review comments (diff) | |
download | synapse-4e5f0f7ca098022b718233d9b429247e6228f31d.tar.xz |
Use an assert
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/presence.py | 3 |
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: |