NTCP: Move runDelayedEvents() after the selector (ticket #2237)

This commit is contained in:
zzz
2018-06-26 16:53:07 +00:00
parent ae8779e004
commit c826efd3a1

View File

@ -178,7 +178,6 @@ class EventPumper implements Runnable {
while (_alive && _selector.isOpen()) {
try {
loopCount++;
runDelayedEvents();
try {
int count = _selector.select(SELECTOR_LOOP_DELAY);
@ -189,6 +188,7 @@ class EventPumper implements Runnable {
// does clear() do anything useful?
selected.clear();
}
runDelayedEvents();
} catch (ClosedSelectorException cse) {
continue;
} catch (IOException ioe) {