comparison rep/Forwarder.java @ 373:ab4405cd3351 current-release **INVALID**

looks like we are done. Wait for further test.
author kono
date Wed, 22 Oct 2008 02:53:12 +0900
parents e16b6326fdac
children c4ffdac26132
comparison
equal deleted inserted replaced
372:e16b6326fdac 373:ab4405cd3351
81 81
82 Session s = manager.getSession(command.sid); 82 Session s = manager.getSession(command.sid);
83 if (s==null) throw new IOException(); 83 if (s==null) throw new IOException();
84 Forwarder editor = s.getFirstForwarder(channel); 84 Forwarder editor = s.getFirstForwarder(channel);
85 if (editor==null) throw new IOException(); 85 if (editor==null) throw new IOException();
86 editor.manage(command); 86 if (!editor.isDirect()) {
87 editor.send(command);
88 return;
89 }
90 if (command.cmd==REP.SMCMD_QUIT_2) {
91 editor.setQuit2(command);
92 } else if (command.eid==editor.eid) {
93 ((Editor)editor).checkReturnedCommand(command);
94 } else {
95 editor.manage(command);
96 }
87 } 97 }
88 98
89 public void setMode(REP cmd) { 99 public void setMode(REP cmd) {
90 mode = cmd; 100 mode = cmd;
91 } 101 }