Fix use after dispose
This commit is contained in:
parent
5071973170
commit
3bec70302b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user