mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-24 09:10:08 +00:00
7144086: TEST_BUG: java/nio/file/WatchService/SensitivityModifier.java failing intermittently
Reviewed-by: chegar
This commit is contained in:
parent
d228d3127c
commit
9ace5d5b19
@ -96,6 +96,7 @@ public class SensitivityModifier {
|
||||
|
||||
// drain events (to avoid interference)
|
||||
do {
|
||||
key.pollEvents();
|
||||
key.reset();
|
||||
key = watcher.poll(1, TimeUnit.SECONDS);
|
||||
} while (key != null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user