Commit f5f186e47ad59a693be43a1c1c455db894b1c27c
1 parent
d426d0c0
Fix to the process of SessionAwareMsg and SessionCtrlMsg of SessionManagerAactor's OnReceive
Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -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 | } | ... | ... |