Dodge the BSD bug with toStringing a channel.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3480 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-04-13 19:18:45 +00:00
parent 9692c7d221
commit 4c3dd9b1af
2 changed files with 23 additions and 7 deletions
@@ -583,9 +583,14 @@ public class ConnectionManager extends LoopingThread
}
if (!(channel instanceof SelectableChannel)) {
Log.warning("Provided with un-selectable socket as " +
"result of accept(), can't cope " +
"[channel=" + channel + "].");
try {
Log.warning("Provided with un-selectable socket as " +
"result of accept(), can't cope " +
"[channel=" + channel + "].");
} catch (Error err) {
Log.warning("Un-selectable channel also couldn't " +
"be printed.");
}
// stick a fork in the socket
channel.socket().close();
return;