mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
block sync if auth checks fail
This commit is contained in:
parent
3dce9050cf
commit
69ce057ea6
2 changed files with 18 additions and 13 deletions
|
@ -209,14 +209,12 @@ class SyncHandler(object):
|
|||
Deferred[SyncResult]
|
||||
"""
|
||||
yield self.auth.check_auth_blocking()
|
||||
|
||||
defer.returnValue(
|
||||
self.response_cache.wrap(
|
||||
sync_config.request_key,
|
||||
self._wait_for_sync_for_user,
|
||||
sync_config, since_token, timeout, full_state,
|
||||
)
|
||||
res = yield self.response_cache.wrap(
|
||||
sync_config.request_key,
|
||||
self._wait_for_sync_for_user,
|
||||
sync_config, since_token, timeout, full_state,
|
||||
)
|
||||
defer.returnValue(res)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _wait_for_sync_for_user(self, sync_config, since_token, timeout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue