Mercurial > hg > RemoteEditor > REPSessionManager
changeset 94:2830eb33d4d3
*** empty log message ***
author | pin |
---|---|
date | Fri, 21 Dec 2007 19:13:44 +0900 |
parents | 1a5b3c2b2268 |
children | 2462a5d11396 |
files | rep/SessionManager.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/SessionManager.java Fri Dec 21 18:37:39 2007 +0900 +++ b/rep/SessionManager.java Fri Dec 21 19:13:44 2007 +0900 @@ -183,7 +183,9 @@ case REP.SMCMD_SELECT: // sessionlist.addEditor(channel, repCmd.sid, repCmd); //sessionlist‚֒ljÁ editor = new Editor(channel); + session = sessionlist.getSession(receivedCommand.sid); + if(session.isOwner()){ int eid2 = session.addEditor(editor); editor.setEID(eid2); @@ -196,6 +198,7 @@ }else { Editor master = session.getMaster(); master.send(receivedCommand); + session.addEditor(editor); } break;