2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-13 20:13:19 +00:00

Sync/Async setters

This commit is contained in:
2022-08-30 22:27:25 +03:00
parent 0dba5f277a
commit 8959f52f6e
3 changed files with 31 additions and 28 deletions

View File

@@ -443,13 +443,17 @@ class DistributedConnection extends NetworkConnection with IStore {
if (dataType.identifier ==
TransmissionTypeIdentifier.ResourceList) {
// remove from suspended.
_suspendedResources.remove(r.distributedResourceInstanceId);
// parse them as int
var id = data.getUint32(8);
// id changed ?
if (id != r.distributedResourceInstanceId)
r.distributedResourceInstanceId = id;
_neededResources[id] = r;
_suspendedResources.remove(id);
await fetch(id, null);
}