Fix to the process of SessionAwareMsg and SessionCtrlMsg of SessionManagerAactor's OnReceive

This commit is contained in:
xiaojizhong 2017-08-11 09:47:46 +08:00
parent d426d0c0ad
commit f5f186e47a

View File

@ -50,7 +50,9 @@ public class SessionManagerActor extends ContextAwareActor {
@Override
public void onReceive(Object msg) throws Exception {
if (msg instanceof SessionAwareMsg) {
if (msg instanceof SessionCtrlMsg) {
onSessionCtrlMsg((SessionCtrlMsg) msg);
} else if (msg instanceof SessionAwareMsg) {
forwardToSessionActor((SessionAwareMsg) msg);
} else if (msg instanceof SessionTerminationMsg) {
onSessionTermination((SessionTerminationMsg) msg);
@ -58,8 +60,6 @@ public class SessionManagerActor extends ContextAwareActor {
onTermination((Terminated) msg);
} else if (msg instanceof SessionTimeoutMsg) {
onSessionTimeout((SessionTimeoutMsg) msg);
} else if (msg instanceof SessionCtrlMsg) {
onSessionCtrlMsg((SessionCtrlMsg) msg);
} else if (msg instanceof ClusterEventMsg) {
broadcast(msg);
}