missingObjects fix

- didn't notice valid objects arriving (only invalid)
This commit is contained in:
Peter Šurda 2017-10-20 23:21:25 +02:00
parent 6655e99aa3
commit b025624f2a
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -359,6 +359,11 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
objectProcessorQueue.put((self.object.objectType, buffer(self.object.data))) objectProcessorQueue.put((self.object.objectType, buffer(self.object.data)))
except BMObjectInvalidError as e: except BMObjectInvalidError as e:
BMProto.stopDownloadingObject(self.object.inventoryHash, True) BMProto.stopDownloadingObject(self.object.inventoryHash, True)
else:
try:
del state.missingObjects[self.object.inventoryHash]
except KeyError:
pass
Inventory()[self.object.inventoryHash] = ( Inventory()[self.object.inventoryHash] = (
self.object.objectType, self.object.streamNumber, buffer(self.payload[objectOffset:]), self.object.expiresTime, buffer(self.object.tag)) self.object.objectType, self.object.streamNumber, buffer(self.payload[objectOffset:]), self.object.expiresTime, buffer(self.object.tag))