|
@@ -1482,7 +1482,8 @@ public abstract class Server {
|
|
while (running) {
|
|
while (running) {
|
|
try {
|
|
try {
|
|
waitPending(); // If a channel is being registered, wait.
|
|
waitPending(); // If a channel is being registered, wait.
|
|
- writeSelector.select(PURGE_INTERVAL_NANOS);
|
|
|
|
|
|
+ writeSelector.select(
|
|
|
|
+ TimeUnit.NANOSECONDS.toMillis(PURGE_INTERVAL_NANOS));
|
|
Iterator<SelectionKey> iter = writeSelector.selectedKeys().iterator();
|
|
Iterator<SelectionKey> iter = writeSelector.selectedKeys().iterator();
|
|
while (iter.hasNext()) {
|
|
while (iter.hasNext()) {
|
|
SelectionKey key = iter.next();
|
|
SelectionKey key = iter.next();
|