2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 07:13:12 +00:00

Restore fix

This commit is contained in:
2022-08-30 22:30:16 +03:00
parent 1011eea4a6
commit f08df2c3fa
2 changed files with 61 additions and 9 deletions

View File

@ -892,13 +892,17 @@ export default class DistributedConnection extends IStore {
if (dataType.identifier == TransmissionTypeIdentifier.ResourceList
|| dataType.identifier == TransmissionTypeIdentifier.List)
{
// remove from suspended.
this._suspendedResources.remove(r._p.instanceId);
// parse them as int
var id = data.getUint32(8);
// id changed ?
if (id != r._p.instanceId)
r._p.instanceId = id;
this._neededResources.set(id, r);
this._suspendedResources.remove(id);
await this.fetch(id, null);