mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-30 22:44:48 +00:00
Use an assert
This commit is contained in:
1 parent
40e56997bc
commit
4e5f0f7ca0
1 file changed
+1
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user