Skip to content

Commit

Permalink
fix origin for recreated own pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Nov 11, 2023
1 parent 2cee076 commit e898879
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/pointers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ export class Pointer<T = any> extends Ref<T> {

try {
logger.debug("could not find local pointer, requesting pointer from "+SCOPE?.sender+": " + pointer.idString());
pointer = await pointer.subscribeForPointerUpdates(SCOPE?.sender, undefined, true);
pointer = await pointer.subscribeForPointerUpdates(SCOPE?.sender, undefined, false);
} catch {
this.loading_pointers.delete(id_string);
pointer.delete();
Expand Down Expand Up @@ -1893,7 +1893,9 @@ export class Pointer<T = any> extends Ref<T> {
}
}
}
if (!foundFallback) logger.error("pointer origin " + origin + " for "+ptrId+" is offline, could not find a trusted fallback endpoint for pointer synchronisation")
if (!foundFallback) {
logger.debug("pointer origin " + origin + " for "+ptrId+" is offline, could not find a trusted fallback endpoint for pointer synchronisation")
}
}
origin.online.observe(handler)
}
Expand Down

0 comments on commit e898879

Please sign in to comment.