diff --git a/src/core/Akka.Remote/RemoteActorRefProvider.cs b/src/core/Akka.Remote/RemoteActorRefProvider.cs index e24674c6e7f..317df8d5f3f 100644 --- a/src/core/Akka.Remote/RemoteActorRefProvider.cs +++ b/src/core/Akka.Remote/RemoteActorRefProvider.cs @@ -489,8 +489,7 @@ public IInternalActorRef ResolveActorRefWithLocalAddress(string path, Address lo //the actor's local address was already included in the ActorPath if (HasAddress(actorPath.Address)) { - // HACK: needed to make ActorSelections work - if (actorPath.ToStringWithoutAddress().Equals("/")) + if (actorPath is RootActorPath) return RootGuardian; return _local.ResolveActorRef(RootGuardian, actorPath.ElementsWithUid); }