Commit f5f186e47ad59a693be43a1c1c455db894b1c27c

Authored by xiaojizhong
1 parent d426d0c0

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

@@ -50,7 +50,9 @@ public class SessionManagerActor extends ContextAwareActor { @@ -50,7 +50,9 @@ public class SessionManagerActor extends ContextAwareActor {
50 50
51 @Override 51 @Override
52 public void onReceive(Object msg) throws Exception { 52 public void onReceive(Object msg) throws Exception {
53 - if (msg instanceof SessionAwareMsg) { 53 + if (msg instanceof SessionCtrlMsg) {
  54 + onSessionCtrlMsg((SessionCtrlMsg) msg);
  55 + } else if (msg instanceof SessionAwareMsg) {
54 forwardToSessionActor((SessionAwareMsg) msg); 56 forwardToSessionActor((SessionAwareMsg) msg);
55 } else if (msg instanceof SessionTerminationMsg) { 57 } else if (msg instanceof SessionTerminationMsg) {
56 onSessionTermination((SessionTerminationMsg) msg); 58 onSessionTermination((SessionTerminationMsg) msg);
@@ -58,8 +60,6 @@ public class SessionManagerActor extends ContextAwareActor { @@ -58,8 +60,6 @@ public class SessionManagerActor extends ContextAwareActor {
58 onTermination((Terminated) msg); 60 onTermination((Terminated) msg);
59 } else if (msg instanceof SessionTimeoutMsg) { 61 } else if (msg instanceof SessionTimeoutMsg) {
60 onSessionTimeout((SessionTimeoutMsg) msg); 62 onSessionTimeout((SessionTimeoutMsg) msg);
61 - } else if (msg instanceof SessionCtrlMsg) {  
62 - onSessionCtrlMsg((SessionCtrlMsg) msg);  
63 } else if (msg instanceof ClusterEventMsg) { 63 } else if (msg instanceof ClusterEventMsg) {
64 broadcast(msg); 64 broadcast(msg);
65 } 65 }