mirror of
https://github.com/element-hq/synapse
synced 2024-09-07 11:40:05 +00:00
Don't corrupt shared cache on subsequent protocol requests
This commit is contained in:
parent
2f267ee160
commit
033d43e419
1 changed files with 2 additions and 0 deletions
|
@ -201,7 +201,9 @@ class ApplicationServicesHandler(object):
|
||||||
|
|
||||||
# Merge the 'instances' lists of multiple results, but just take
|
# Merge the 'instances' lists of multiple results, but just take
|
||||||
# the other fields from the first as they ought to be identical
|
# the other fields from the first as they ought to be identical
|
||||||
|
# deep-clone the result so as not to corrupt the cached one
|
||||||
combined = dict(infos[0])
|
combined = dict(infos[0])
|
||||||
|
combined["instances"] = list(combined["instances"])
|
||||||
|
|
||||||
for info in infos[1:]:
|
for info in infos[1:]:
|
||||||
combined["instances"].extend(info["instances"])
|
combined["instances"].extend(info["instances"])
|
||||||
|
|
Loading…
Reference in a new issue