Minor Corrections

This commit is contained in:
Cooldude2606 authored and Daniel committed 2024-08-16 07:00:08 +02:00
1 parent 08c522429b
commit 660af756e6
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -538,7 +538,7 @@ export class Link {
if (!entry) {
throw new Error(`Attempt to send unregistered Request ${request.constructor.name}`);
}
if (this.connector.src.equals(dst)) {
if (this.connector.src.addressedTo(dst)) {
throw new Error(`Message would return back to sender ${dst}.`);
}
if (this.validateSent) {
@@ -575,7 +575,7 @@ export class Link {
if (!entry) {
throw new Error(`Attempt to send unregistered Event ${event.constructor.name}`);
}
if (this.connector.src.equals(dst)) {
if (this.connector.src.addressedTo(dst)) {
throw new Error(`Message would return back to sender ${dst}.`);
}
if (this.validateSent) {