changeset 244:f8af86006772

*** empty log message ***
author kono
date Wed, 03 Sep 2008 16:41:28 +0900
parents 5d74d0f73474
children e0a4a8f3694e
files rep/SessionManager.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/rep/SessionManager.java	Wed Sep 03 16:35:30 2008 +0900
+++ b/rep/SessionManager.java	Wed Sep 03 16:41:28 2008 +0900
@@ -526,7 +526,7 @@
 		smList.add(channel);
 	}
 
-	private String getLocalHostName(REPSocketChannel channel) {
+	private String getLocalHostName(REPSocketChannel<REPCommand> channel) {
 		String host = null;
 		host = channel.socket().getLocalAddress().getHostName();
 		return host;
@@ -549,9 +549,9 @@
 //		selector.wakeup();
 //	}
 
-	public void selectSession(SelectButtonEvent<REPCommand> event) {
-		REPSocketChannel<REPCommand> channel = event.getEditorChannel();
-		int sid = event.getSID();
+	public void selectSession(SelectButtonEvent<REPCommand> selectButtonEvent) {
+		REPSocketChannel<REPCommand> channel = selectButtonEvent.getEditorChannel();
+		int sid = selectButtonEvent.getSID();
 		Session session = getSession(sid);
 		
 		Editor editor = getEditor(channel);
@@ -570,7 +570,7 @@
 			sendCommand.setSID(sid);
 			channel.write(sendCommand);
 		}else {
-			sid = event.getSID();
+			sid = selectButtonEvent.getSID();
 			editor = new Editor(channel);
 			editor.setHost(myHost);
 			session = getSession(sid);