If we end up with a selectable channel in our selection set that we no
longer know about, request that it be given the boot when it rears its ugly head. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3643 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -445,6 +445,10 @@ public class ConnectionManager extends LoopingThread
|
||||
if (handler == null) {
|
||||
Log.warning("Received network event but have no " +
|
||||
"registered handler [selkey=" + selkey + "].");
|
||||
// request that this key be removed from our selection
|
||||
// set, which normally happens automatically but for
|
||||
// some reason didn't
|
||||
selkey.cancel();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user