forked from I2P_Developers/i2p.i2p
NTCP: Move runDelayedEvents() after the selector (ticket #2237)
This commit is contained in:
@ -178,7 +178,6 @@ class EventPumper implements Runnable {
|
|||||||
while (_alive && _selector.isOpen()) {
|
while (_alive && _selector.isOpen()) {
|
||||||
try {
|
try {
|
||||||
loopCount++;
|
loopCount++;
|
||||||
runDelayedEvents();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int count = _selector.select(SELECTOR_LOOP_DELAY);
|
int count = _selector.select(SELECTOR_LOOP_DELAY);
|
||||||
@ -189,6 +188,7 @@ class EventPumper implements Runnable {
|
|||||||
// does clear() do anything useful?
|
// does clear() do anything useful?
|
||||||
selected.clear();
|
selected.clear();
|
||||||
}
|
}
|
||||||
|
runDelayedEvents();
|
||||||
} catch (ClosedSelectorException cse) {
|
} catch (ClosedSelectorException cse) {
|
||||||
continue;
|
continue;
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
|
Reference in New Issue
Block a user