Mercurial > hg > RemoteEditor > REPSessionManager
changeset 216:f92a3ffaf31f
*** empty log message ***
author | kono |
---|---|
date | Sun, 31 Aug 2008 00:07:21 +0900 |
parents | 7649238aaf66 |
children | 4deaaaa6354e |
files | rep/channel/REPSocketChannel.java |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/channel/REPSocketChannel.java Sat Aug 30 21:53:08 2008 +0900 +++ b/rep/channel/REPSocketChannel.java Sun Aug 31 00:07:21 2008 +0900 @@ -138,12 +138,15 @@ return sc.connect(semaIP); } + @SuppressWarnings("unchecked") @Override public SelectionKey register(Selector sel, int ops, Object att) throws ClosedChannelException { - return sc.register(sel, ops); - //assert(false); - //return null; + if(sel instanceof REPSelector) { + REPSelector<P> s = (REPSelector<P>)sel; + return sc.register(s.selector, ops,att); + } + return sc.register(sel, ops,att); }