diff --git a/plugins/Akka.Interfaced.SlimServer/ActorBoundUtility.cs b/plugins/Akka.Interfaced.SlimServer/ActorBoundUtility.cs index c157e78..326e633 100644 --- a/plugins/Akka.Interfaced.SlimServer/ActorBoundUtility.cs +++ b/plugins/Akka.Interfaced.SlimServer/ActorBoundUtility.cs @@ -17,7 +17,7 @@ public static class ActorBoundUtility this ActorBoundChannelRef channel, IActorRef actor, TaggedType[] types, ActorBindingFlags bindingFlags, string gatewayName, object tag, ActorBindingFlags bindingFlagsForOpenChannel) { - if (channel != null && channel.CastToIActorRef().Path.Address == actor.Path.Address) + if (string.IsNullOrEmpty(gatewayName) || (channel != null && channel.CastToIActorRef().Path.Address == actor.Path.Address)) { // link an actor to channel directly return await channel.BindActor(actor, types, bindingFlags);