From 001df7de1a1ab89e32acb0fa5f04dcef1b4c41ca Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Mon, 11 Jul 2016 10:12:28 +0900 Subject: [PATCH] BindActorOrOpenChannel uses channel when gateway is null. --- plugins/Akka.Interfaced.SlimServer/ActorBoundUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);