register() already puts our mapping in the _handlers table.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6549 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -218,7 +218,6 @@ public abstract class ConnectionManager extends LoopingThread
|
|||||||
channel.configureBlocking(false);
|
channel.configureBlocking(false);
|
||||||
conn.init(this, channel, System.currentTimeMillis());
|
conn.init(this, channel, System.currentTimeMillis());
|
||||||
conn.selkey = register(channel, SelectionKey.OP_READ, conn);
|
conn.selkey = register(channel, SelectionKey.OP_READ, conn);
|
||||||
_handlers.put(conn.selkey, conn);
|
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
_stats.connects++;
|
_stats.connects++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user