Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2048 from matrix-org/rav/missing_yield
Browse files Browse the repository at this point in the history
Add a missing yield in device key upload
  • Loading branch information
richvdh authored Mar 23, 2017
2 parents b2d40d7 + e08f81d commit 5536681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/e2e_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def upload_keys_for_user(self, user_id, device_id, keys):
# old access_token without an associated device_id. Either way, we
# need to double-check the device is registered to avoid ending up with
# keys without a corresponding device.
self.device_handler.check_device_registered(user_id, device_id)
yield self.device_handler.check_device_registered(user_id, device_id)

result = yield self.store.count_e2e_one_time_keys(user_id, device_id)

Expand Down

0 comments on commit 5536681

Please sign in to comment.