mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 15:53:51 +01:00
Use an assert
This commit is contained in:
parent
40e56997bc
commit
4e5f0f7ca0
1 changed files with 1 additions and 2 deletions
|
@ -939,8 +939,7 @@ class PresenceHandler(object):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _process_presence():
|
def _process_presence():
|
||||||
if self._event_processing:
|
assert not self._event_processing
|
||||||
return
|
|
||||||
|
|
||||||
self._event_processing = True
|
self._event_processing = True
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue