Don't corrupt shared cache on subsequent protocol requests

This commit is contained in:
Paul "LeoNerd" Evans 2016-09-09 13:10:36 +01:00
parent 2f267ee160
commit 033d43e419

View File

@ -201,7 +201,9 @@ class ApplicationServicesHandler(object):
# Merge the 'instances' lists of multiple results, but just take
# 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["instances"] = list(combined["instances"])
for info in infos[1:]:
combined["instances"].extend(info["instances"])