Fix some issues with object processing
This commit is contained in:
@@ -89,6 +89,7 @@ export class ObjectStoreLite implements IObjectStore
|
||||
private physicsSubscription: Subscription;
|
||||
private selectedPrimsWithoutUpdate = new Map<number, boolean>();
|
||||
private selectedChecker?: Timer;
|
||||
private blacklist: Map<number, Date> = new Map<number, Date>();
|
||||
|
||||
rtree?: RBush3D;
|
||||
|
||||
@@ -455,6 +456,19 @@ export class ObjectStoreLite implements IObjectStore
|
||||
return;
|
||||
}
|
||||
this.requestedObjects.add(localID);
|
||||
const black = this.blacklist.get(localID);
|
||||
if (black !== undefined)
|
||||
{
|
||||
const thirtyMinutesAgo = new Date(new Date().getTime() - 30 * 60000);
|
||||
if (black >= thirtyMinutesAgo)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.blacklist.delete(localID);
|
||||
}
|
||||
}
|
||||
const rmo = new RequestMultipleObjectsMessage();
|
||||
rmo.AgentData = {
|
||||
AgentID: this.agent.agentID,
|
||||
@@ -507,8 +521,8 @@ export class ObjectStoreLite implements IObjectStore
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.blacklist.set(localID, new Date());
|
||||
console.error('Error retrieving missing object after 5 attempts: ' + localID);
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -1614,7 +1614,7 @@ export class RegionCommands extends CommandsBase
|
||||
if (resolve)
|
||||
{
|
||||
const resolver = new ObjectResolver(this.currentRegion);
|
||||
await resolver.resolveObjects(objs, onlyUnresolved, skipInventory, outputLog);
|
||||
await resolver.resolveObjects(objs, !onlyUnresolved, skipInventory, outputLog);
|
||||
}
|
||||
return objs;
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ export class Parcel
|
||||
{
|
||||
const document = builder.create('LandData');
|
||||
document.ele('Area', this.Area);
|
||||
document.ele('AuctionID', this.AuctionID);
|
||||
document.ele('AuctionID', this.AuctionID ?? 0);
|
||||
document.ele('AuthBuyerID', this.AuthBuyerID.toString());
|
||||
document.ele('Category', this.Category);
|
||||
document.ele('ClaimDate', this.ClaimDate);
|
||||
|
||||
Reference in New Issue
Block a user