diff --git a/runtime/pointers.ts b/runtime/pointers.ts index d6c70336..8f46e4ae 100644 --- a/runtime/pointers.ts +++ b/runtime/pointers.ts @@ -4226,6 +4226,12 @@ export class Pointer extends Ref { // if identifier is set, further updates to the same identifier are overwritten async handleDatexUpdate(identifier:string|null, datex:string|PrecompiledDXB, data:any[], receiver:endpoints, collapse_first_inserted = false, stream_abort_signal?: AbortSignal){ + // cannot send updates as @@local + if (Runtime.endpoint == LOCAL_ENDPOINT) { + logger.warn("Skipped DATEX update " + this.idString() + " (" + identifier + ")" + " to " + receiver + ", own endpoint is @@local"); + return; + } + // let schedulter handle updates (cannot throw errors) if (this.#scheduler) { this.#scheduler.addUpdate(this, identifier, datex, data, receiver, collapse_first_inserted);