mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
daemon: Only handle the response if it's a valid sync response.
This commit is contained in:
parent
ea9a30367a
commit
79aecc1826
@ -209,6 +209,12 @@ class ProxyDaemon:
|
||||
|
||||
response = await client.sync(timeout, sync_filter)
|
||||
|
||||
if not isinstance(response, SyncResponse):
|
||||
return web.Response(
|
||||
status=response.transport_response.status,
|
||||
text=await response.text()
|
||||
)
|
||||
|
||||
if client.should_upload_keys:
|
||||
await client.keys_upload()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user