tab -> spaces
This commit is contained in:
parent
e06ab750cb
commit
988089ed10
@ -361,12 +361,12 @@ class NioDatagramWorker implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean cleanUpCancelledKeys() throws IOException {
|
private boolean cleanUpCancelledKeys() throws IOException {
|
||||||
if (cancelledKeys >= 128) { // FIXME hardcoded value
|
if (cancelledKeys >= 128) { // FIXME hardcoded value
|
||||||
cancelledKeys = 0;
|
cancelledKeys = 0;
|
||||||
selector.selectNow();
|
selector.selectNow();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void write(SelectionKey k) {
|
private static void write(SelectionKey k) {
|
||||||
|
@ -292,12 +292,12 @@ class NioWorker implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean cleanUpCancelledKeys() throws IOException {
|
private boolean cleanUpCancelledKeys() throws IOException {
|
||||||
if (cancelledKeys >= 128) { // FIXME hardcoded value
|
if (cancelledKeys >= 128) { // FIXME hardcoded value
|
||||||
cancelledKeys = 0;
|
cancelledKeys = 0;
|
||||||
selector.selectNow();
|
selector.selectNow();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean read(SelectionKey k) {
|
private static boolean read(SelectionKey k) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user