We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861210a commit 233df98Copy full SHA for 233df98
1 file changed
src/FubarDev.FtpServer/Networking/PassThroughService.cs
@@ -42,8 +42,13 @@ public override async Task StopAsync(CancellationToken cancellationToken)
42
{
43
await base.StopAsync(cancellationToken)
44
.ConfigureAwait(false);
45
- await SafeFlushAsync(cancellationToken)
46
- .ConfigureAwait(false);
+
+ if (!IsPauseRequested)
47
+ {
48
+ await SafeFlushAsync(cancellationToken)
49
+ .ConfigureAwait(false);
50
+ }
51
52
await OnCloseAsync(_exception, cancellationToken)
53
54
}
0 commit comments