Correct set blocking mode on server channel

This commit is contained in:
Norman Maurer 2012-03-30 22:16:18 +02:00
parent 8eb3a30bd4
commit f135804b9b

View File

@ -340,7 +340,10 @@ public class SctpWorker extends NioWorker {
}
try {
if (server) {
channel.getJdkChannel().configureBlocking(false);
}
boolean registered = channel.getJdkChannel().isRegistered();
if (!registered) {
synchronized (channel.getInterestedOpsLock()) {