Skip to content

Commit 5709c86

Browse files
Fix name/value issue and make timeouts a little more forgiving
1 parent 3a6aaac commit 5709c86

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/classes/ObjectStoreLite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ export class ObjectStoreLite implements IObjectStore
13221322
pos = pos + 4;
13231323
}
13241324

1325-
o.IsAttachment = (compressedflags & CompressedFlags.HasNameValues) !== 0 && o.ParentID !== 0;
1325+
o.IsAttachment = o.NameValue !== undefined && o.NameValue.get('AttachItemID') !== undefined;
13261326
if (o.IsAttachment && o.State !== undefined)
13271327
{
13281328
o.attachmentPoint = this.decodeAttachPoint(o.State);

lib/classes/Region.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ export class Region
11181118
SessionID: this.circuit.sessionID
11191119
};
11201120
this.circuit.sendMessage(request, PacketFlags.Reliable);
1121-
const regionInfo: RegionInfoMessage = await this.circuit.waitForMessage<RegionInfoMessage>(Message.RegionInfo, 30000);
1121+
const regionInfo: RegionInfoMessage = await this.circuit.waitForMessage<RegionInfoMessage>(Message.RegionInfo, 60000);
11221122

11231123
this.estateID = regionInfo.RegionInfo.EstateID;
11241124
this.parentEstateID = regionInfo.RegionInfo.ParentEstateID;

lib/classes/commands/GridCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export class GridCommands extends CommandsBase
414414
}
415415

416416
this.circuit.sendMessage(req, PacketFlags.Reliable);
417-
await this.circuit.waitForMessage<UUIDNameReplyMessage>(Message.UUIDNameReply, 10000, (reply: UUIDNameReplyMessage): FilterResponse =>
417+
await this.circuit.waitForMessage<UUIDNameReplyMessage>(Message.UUIDNameReply, 30000, (reply: UUIDNameReplyMessage): FilterResponse =>
418418
{
419419
let found = false;
420420
for (const name of reply.UUIDNameBlock)

0 commit comments

Comments
 (0)