Mercurial > hg > RemoteEditor > REPSessionManager
changeset 81:13819571691d
*** empty log message ***
author | pin |
---|---|
date | Tue, 11 Dec 2007 12:48:34 +0900 |
parents | f7a9b323458b |
children | 4bb583553a42 |
files | rep/SessionManager.java |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/SessionManager.java Tue Dec 11 12:35:01 2007 +0900 +++ b/rep/SessionManager.java Tue Dec 11 12:48:34 2007 +0900 @@ -296,7 +296,10 @@ } private boolean setMaxHost(SocketChannel channel, String host) { - if(maxHost == null) maxHost = myHost; + if(maxHost == null) { + maxHost = myHost; + sessionlist.setMaxHost(maxHost); + } if(host.compareTo(maxHost) < 0){ //host > MaxHost なら maxHost = host //masterを設定する。 @@ -311,6 +314,10 @@ private void setMyHostName(String localHostName) { myHost = localHostName; + if(maxHost == null) { + maxHost = myHost; + sessionlist.setMaxHost(maxHost); + } allEditorList.setHost(myHost); } @@ -368,6 +375,7 @@ //hostnameをセット。 this.setMyHostName(getLocalHostName(channel)); + //this.setMaxHost(channel, getLocalHostName(channel)); SessionXMLEncoder encoder = new SessionXMLEncoder(sessionlist); String string = encoder.sessionListToXML(); command.setString(string);