Fix creating DLNA profiles

This commit is contained in:
Cody Robibero 2021-11-21 11:48:30 -07:00
parent 718e4b8665
commit 5b7e8a27fb

View File

@ -350,7 +350,7 @@ namespace Emby.Dlna
Directory.CreateDirectory(systemProfilesPath);
var fileOptions = AsyncFile.WriteOptions;
fileOptions.Mode = FileMode.CreateNew;
fileOptions.Mode = FileMode.Create;
fileOptions.PreallocationSize = length;
using (var fileStream = new FileStream(path, fileOptions))
{