mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-19 02:22:05 +01:00
Merge pull request #512 from bgrozev/fix-smack-reactor-select
fix: Correctly handle the case when the action due time is 0.
This commit is contained in:
commit
4e715a35e5
1 changed files with 4 additions and 5 deletions
|
@ -221,11 +221,10 @@ public class SmackReactor {
|
|||
selectWait = 0;
|
||||
} else {
|
||||
selectWait = nextScheduledAction.getTimeToDueMillis();
|
||||
}
|
||||
|
||||
if (selectWait < 0) {
|
||||
// A scheduled action was just released and became ready to execute.
|
||||
return;
|
||||
if (selectWait <= 0) {
|
||||
// A scheduled action was just released and became ready to execute.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Before we call select, we handle the pending the interest Ops. This will not block since no other
|
||||
|
|
Loading…
Reference in a new issue