Use an assert

pull/4942/head
Erik Johnston 2019-03-28 13:55:21 +00:00
parent 40e56997bc
commit 4e5f0f7ca0
1 changed files with 1 additions and 2 deletions

View File

@ -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: