Skip to content

Commit

Permalink
🐛 fix handling of admin messages in GlxGlobalRemoteActor
Browse files Browse the repository at this point in the history
  • Loading branch information
pron committed Aug 27, 2015
1 parent 28736da commit 6612b71
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ private void startReceiver() {
final ActorImpl<Message> actor = getActor();
if (actor == null)
throw new IllegalStateException("Actor for " + this + " not running locally");
GlobalRemoteChannelReceiver.getReceiver(actor.getMailbox(), id);
final GlobalRemoteChannelReceiver<Object> receiver = GlobalRemoteChannelReceiver.getReceiver(actor.getMailbox(), id);
receiver.setFilter(new GlobalRemoteChannelReceiver.MessageFilter<Object>() {
@Override
public boolean shouldForwardMessage(Object msg) {
if (msg instanceof RemoteActorAdminMessage) {
handleAdminMessage((RemoteActorAdminMessage) msg);
return false;
}
return true;
}
});
}

@Override
Expand Down

0 comments on commit 6612b71

Please sign in to comment.