summary refs log tree commit diff
path: root/synapse/appservice
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-08-04 07:22:04 -0400
committerGitHub <noreply@github.com>2020-08-04 07:22:04 -0400
commit88a3ff12f0fa41610968ea820afe44cca70efea7 (patch)
treee3df543ef4c4f630a1b46f8f301f7f99cd79a464 /synapse/appservice
parentConvert streams to async. (#8014) (diff)
downloadsynapse-88a3ff12f0fa41610968ea820afe44cca70efea7.tar.xz
Convert the SimpleHttpClient to async. (#8016)
Diffstat (limited to 'synapse/appservice')
-rw-r--r--synapse/appservice/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index db578bda79..e72a0b9ac0 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -175,7 +175,7 @@ class ApplicationServiceApi(SimpleHttpClient):
                 urllib.parse.quote(protocol),
             )
             try:
-                info = yield self.get_json(uri, {})
+                info = yield defer.ensureDeferred(self.get_json(uri, {}))
 
                 if not _is_valid_3pe_metadata(info):
                     logger.warning(