Fix use after dispose

This commit is contained in:
Bond_009 2023-02-17 20:47:07 +01:00
parent 5071973170
commit 3bec70302b

View File

@ -193,7 +193,6 @@ namespace MediaBrowser.Providers.Subtitles
await stream.CopyToAsync(memoryStream).ConfigureAwait(false);
memoryStream.Position = 0;
}
}
var savePaths = new List<string>();
var saveFileName = Path.GetFileNameWithoutExtension(video.Path) + "." + response.Language.ToLowerInvariant();
@ -232,6 +231,7 @@ namespace MediaBrowser.Providers.Subtitles
_logger.LogError("An uploaded subtitle could not be saved because the resulting paths were invalid.");
}
}
}
private async Task TrySaveToFiles(Stream stream, List<string> savePaths)
{