Skip to content

Commit

Permalink
Add finalizer to sentry logger for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed May 10, 2022
1 parent 9734d77 commit 99e6d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osu.Game/Utils/SentryLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public SentryLogger(OsuGame game)
Logger.NewEntry += processLogEntry;
}

~SentryLogger() => Dispose(false);

public void AttachUser(IBindable<APIUser> user)
{
Debug.Assert(localUser == null);
Expand Down

0 comments on commit 99e6d56

Please sign in to comment.