Skip to content

Commit 0c4f796

Browse files
committed
Make dispose cancellation unconditional
1 parent c665ff9 commit 0c4f796

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ internal override void DisposeCore(bool disposing)
139139

140140
if (disposing)
141141
{
142-
if (State != PipeState.Closed)
143-
{
144-
_internalTokenSource.Cancel();
145-
}
142+
_internalTokenSource.Cancel();
146143
}
147144
}
148145

0 commit comments

Comments
 (0)