mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 17:03:21 +08:00
Add finalizer to sentry logger for safety
This commit is contained in:
parent
9734d778f4
commit
99e6d56508
@ -41,6 +41,8 @@ namespace osu.Game.Utils
|
|||||||
Logger.NewEntry += processLogEntry;
|
Logger.NewEntry += processLogEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~SentryLogger() => Dispose(false);
|
||||||
|
|
||||||
public void AttachUser(IBindable<APIUser> user)
|
public void AttachUser(IBindable<APIUser> user)
|
||||||
{
|
{
|
||||||
Debug.Assert(localUser == null);
|
Debug.Assert(localUser == null);
|
||||||
|
Loading…
Reference in New Issue
Block a user