diff --git a/src/core/Akka.Remote/RemoteActorRefProvider.cs b/src/core/Akka.Remote/RemoteActorRefProvider.cs index 173ad3099cd..d166c3b9c06 100644 --- a/src/core/Akka.Remote/RemoteActorRefProvider.cs +++ b/src/core/Akka.Remote/RemoteActorRefProvider.cs @@ -282,7 +282,7 @@ internal IInternalActorRef ResolveActorRefWithLocalAddress(string path, Address public IActorRef ResolveActorRef(string path) { - if (path == "" || path == ActorRefs.NoSender.Path.ToStringWithAddress()) + if (path == "") return ActorRefs.NoSender; ActorPath actorPath; diff --git a/src/core/Akka/Actor/ActorRef.cs b/src/core/Akka/Actor/ActorRef.cs index 19a4d8fc1ff..423b3b5f71f 100644 --- a/src/core/Akka/Actor/ActorRef.cs +++ b/src/core/Akka/Actor/ActorRef.cs @@ -354,7 +354,7 @@ public abstract class ActorRefWithCell : InternalActorRefBase public sealed class NoSender : ActorRefBase { public static readonly NoSender Instance = new NoSender(); - private readonly ActorPath _path = new RootActorPath(Address.AllSystems) / "NoSender"; + private readonly ActorPath _path = new RootActorPath(Address.AllSystems, "/NoSender"); private NoSender() { }