daemon: Only handle the response if it's a valid sync response.

This commit is contained in:
Damir Jelić 2019-03-26 13:00:10 +01:00
parent ea9a30367a
commit 79aecc1826

View File

@ -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()