Skip to content

Commit e78f98c

Browse files
committed
Comment
1 parent 1baa0de commit e78f98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servers/Kestrel/Transport.NamedPipes/src/Internal/NamedPipeConnectionListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ public async ValueTask DisposeAsync()
166166
await Task.WhenAll(_listeningTasks);
167167
}
168168

169-
// Dispose pool after listening tasks are complete so there is no chance a stream
170-
// is fetched from the pool after the pool is disposed.
169+
// Dispose pool after listening tasks are complete so there is no chance a stream is fetched from the pool after the pool is disposed.
170+
// Important to dispose because this empties and disposes streams in the pool.
171171
((IDisposable)_namedPipeServerStreamPool).Dispose();
172172
}
173173

0 commit comments

Comments
 (0)