mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #14755] [MERGED] Fix sync disposal of async-created IAsyncDisposable objects #14100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/14755
Author: @evan314159
Created: 9/6/2025
Status: ✅ Merged
Merged: 9/16/2025
Merged by: @crobibero
Base:
master← Head:fix-await📝 Commits (4)
380f453Fix sync disposal of async-created IAsyncDisposable objectscd0e0fdUpdate src/Jellyfin.CodeAnalysis/AnalyzerReleases.Shipped.mdef74997Merge branch 'master' into fix-awaitd438f93Apply suggestions from review📊 Changes
10 files changed (+255 additions, -110 deletions)
View changed files
📝
Directory.Build.props(+5 -0)📝
Directory.Packages.props(+5 -2)📝
Jellyfin.Server.Implementations/Item/KeyframeRepository.cs(+8 -5)📝
Jellyfin.Server.Implementations/MediaSegments/MediaSegmentManager.cs(+107 -93)📝
Jellyfin.Server/Migrations/Routines/FixDates.cs(+11 -8)📝
Jellyfin.sln(+7 -0)📝
MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs(+4 -2)➕
src/Jellyfin.CodeAnalysis/AnalyzerReleases.Shipped.md(+9 -0)➕
src/Jellyfin.CodeAnalysis/AsyncDisposalPatternAnalyzer.cs(+82 -0)➕
src/Jellyfin.CodeAnalysis/Jellyfin.CodeAnalysis.csproj(+17 -0)📄 Description
Changes
Fix sync disposal of async-created IAsyncDisposable objects and add Roslyn analyzer
Existing IDisposableAnalyzers (IDISP013) do not address case of objects that are both IAsyncDisposable and IDisposable which is the case here
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.