8065720: (ch) AbstractInterruptibleChannel.end sets interrupted to null
Reviewed-by: psandoz, chegar
This commit is contained in:
parent
95ef6e0cb2
commit
3469175a63
@ -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…
x
Reference in New Issue
Block a user