summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-09 12:26:27 +0100
committerNeil Johnson <neil@matrix.org>2018-08-09 12:26:27 +0100
commit69ce057ea613f425d5ef6ace03d0019a8e4fdf49 (patch)
treeefb1f69d1b390217d85ca35ea80ef134c978b143 /synapse/handlers
parentMerge branch 'develop' of github.com:matrix-org/synapse into neilj/mau_sync_b... (diff)
downloadsynapse-69ce057ea613f425d5ef6ace03d0019a8e4fdf49.tar.xz
block sync if auth checks fail
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/sync.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py

index f748d9afb0..776ddca638 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py
@@ -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,