Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix database connection disposal on server shutdown #98

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

a-mnich
Copy link

@a-mnich a-mnich commented Jan 26, 2025

This PR aims to fix:

  • Jellyfin.Plugin.PlaybackReporting/Data/IActivityRepository.cs: Implemented the IDisposable interface for the IActivityRepository to ensure proper resource cleanup and allow explicit calling of the Dispose method from the finalizer of EventMonitorEntryPoint.
  • Jellyfin.Plugin.PlaybackReporting/EventMonitorEntryPoint.cs: Implemented the IDisposable interface and added a finalizer to the EventMonitorEntryPoint class to definetively ensure that the db connection is closed upon server shutdown.
  • README.md: updated the .NET SDK requirements

I've tested the fix on a Mac Mini M4 and don't have this issue anymore.

resolves #89

Copy link
Member

@crobibero crobibero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@crobibero crobibero merged commit 5a529cc into jellyfin:master Jan 27, 2025
2 checks passed
@a-mnich a-mnich deleted the fix-dblock branch January 31, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playback Reporting plugin breaks dashboard restart button
2 participants