fix: update -> Serializer::later

This commit is contained in:
cha0s 2021-03-14 09:50:45 -05:00
parent a775c5bfd6
commit a3a0d666dc

View File

@ -34,7 +34,11 @@ export default (latus) => (Resource) => (
else {
await this._serializer.later(
`${type}:${id}`,
(resource) => resource.acceptPacket(packet),
(resource) => {
for (let i = 0; i < packet.data.packets.length; i++) {
resource.acceptPacket(packet.data.packets[i]);
}
},
);
}
break;