Commit b5cef88adcedcc0ea3a2cb4bfc6e7c52b0cf0fe5

Authored by Andrew Shvayka
Committed by GitHub
2 parents d426d0c0 f5f186e4

Merge pull request #243 from xjz/master

Fix to the process of SessionAwareMsg and SessionCtrlMsg of SessionManagerAactor's OnReceive
... ... @@ -50,7 +50,9 @@ public class SessionManagerActor extends ContextAwareActor {
50 50
51 51 @Override
52 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 56 forwardToSessionActor((SessionAwareMsg) msg);
55 57 } else if (msg instanceof SessionTerminationMsg) {
56 58 onSessionTermination((SessionTerminationMsg) msg);
... ... @@ -58,8 +60,6 @@ public class SessionManagerActor extends ContextAwareActor {
58 60 onTermination((Terminated) msg);
59 61 } else if (msg instanceof SessionTimeoutMsg) {
60 62 onSessionTimeout((SessionTimeoutMsg) msg);
61   - } else if (msg instanceof SessionCtrlMsg) {
62   - onSessionCtrlMsg((SessionCtrlMsg) msg);
63 63 } else if (msg instanceof ClusterEventMsg) {
64 64 broadcast(msg);
65 65 }
... ...