Mercurial > hg > RemoteEditor > REPSessionManager
diff 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 |
line wrap: on
line diff
--- a/rep/Forwarder.java Wed Oct 22 00:42:47 2008 +0900 +++ b/rep/Forwarder.java Wed Oct 22 02:53:12 2008 +0900 @@ -83,7 +83,17 @@ if (s==null) throw new IOException(); Forwarder editor = s.getFirstForwarder(channel); if (editor==null) throw new IOException(); - editor.manage(command); + if (!editor.isDirect()) { + editor.send(command); + return; + } + if (command.cmd==REP.SMCMD_QUIT_2) { + editor.setQuit2(command); + } else if (command.eid==editor.eid) { + ((Editor)editor).checkReturnedCommand(command); + } else { + editor.manage(command); + } } public void setMode(REP cmd) {