Skip to content

Commit 9369e71

Browse files
[6.0] Remove IsAvailable check on CommitAsync. (#44610)
1 parent 1e3dacc commit 9369e71

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Middleware/Session/src/DistributedSession.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,6 @@ public async Task LoadAsync(CancellationToken cancellationToken = default)
267267
/// <inheritdoc />
268268
public async Task CommitAsync(CancellationToken cancellationToken = default)
269269
{
270-
if (!IsAvailable)
271-
{
272-
_logger.SessionNotAvailable();
273-
return;
274-
}
275-
276270
using (var timeout = new CancellationTokenSource(_ioTimeout))
277271
{
278272
var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, cancellationToken);

0 commit comments

Comments
 (0)