From 7fa0d3cf2c1ce024d7ae25836503ecd01808daaa Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Wed, 3 Jun 2015 09:20:43 -0700 Subject: [PATCH] Revert "Fixes for NoSender serialization bugs" --- src/core/Akka.Remote/RemoteActorRefProvider.cs | 2 +- src/core/Akka/Actor/ActorRef.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { }