Skip to content

Commit

Permalink
BindActorOrOpenChannel uses channel when gateway is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
veblush committed Jul 11, 2016
1 parent fc76f0d commit 001df7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Akka.Interfaced.SlimServer/ActorBoundUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 001df7d

Please sign in to comment.