mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8065720: (ch) AbstractInterruptibleChannel.end sets interrupted to null
Reviewed-by: psandoz, chegar
This commit is contained in:
parent
95ef6e0cb2
commit
3469175a63
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ public abstract class AbstractInterruptibleChannel
|
||||||
blockedOn(null);
|
blockedOn(null);
|
||||||
Thread interrupted = this.interrupted;
|
Thread interrupted = this.interrupted;
|
||||||
if (interrupted != null && interrupted == Thread.currentThread()) {
|
if (interrupted != null && interrupted == Thread.currentThread()) {
|
||||||
interrupted = null;
|
this.interrupted = null;
|
||||||
throw new ClosedByInterruptException();
|
throw new ClosedByInterruptException();
|
||||||
}
|
}
|
||||||
if (!completed && !open)
|
if (!completed && !open)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue