Commit 0c733e1
[netty#2363] Correctly null out SelectionKey[] when selectAgain
Motivation:
The prefix fix of netty#2363 did not correctly handle the case when selectAgain is true and so missed to null out entries.
Modifications:
Move the i++ from end of loop to beginning of loop
Result:
Entries in the array will be null out so allow to have these GC'ed once the Channel close1 parent 1bee71f commit 0c733e1
File tree
1 file changed
+1
-1
lines changed- transport/src/main/java/io/netty/channel/nio
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
482 | | - | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
0 commit comments