diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-09-25 19:44:40 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-09-25 19:44:40 +0200 |
| commit | f31224fa8f1dccb730703c048c26e14b5d14fa55 (patch) | |
| tree | 0663fabcb48fa9f93ba4595b27b3f21499c5ae23 /Emby.Dlna | |
| parent | 2ee3e9e00f62ff8b0139f1273d7666d0f6c549a4 (diff) | |
Remove sync FileStream hack
Diffstat (limited to 'Emby.Dlna')
| -rw-r--r-- | Emby.Dlna/DlnaManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.cs index 305e43a3c..8fe9d484e 100644 --- a/Emby.Dlna/DlnaManager.cs +++ b/Emby.Dlna/DlnaManager.cs @@ -366,7 +366,7 @@ namespace Emby.Dlna Directory.CreateDirectory(systemProfilesPath); // use FileShare.None as this bypasses dotnet bug dotnet/runtime#42790 . - using (var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None, IODefaults.FileStreamBufferSize, AsyncFile.UseAsyncIO)) + using (var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.None, IODefaults.FileStreamBufferSize, FileOptions.Asynchronous)) { await stream.CopyToAsync(fileStream).ConfigureAwait(false); } |
