mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 09:46:13 -05:00
Use an assert
This commit is contained in:
parent
40e56997bc
commit
4e5f0f7ca0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user