mirror of
https://github.com/ppy/osu
synced 2025-01-01 03:42:19 +00:00
Cleanup.
This commit is contained in:
parent
e01a50e4b3
commit
6ae6603ded
@ -71,7 +71,7 @@ namespace osu.Game
|
||||
[Cached]
|
||||
private readonly ScreenshotManager screenshotManager = new ScreenshotManager();
|
||||
|
||||
protected SentryLogger RavenLogger;
|
||||
protected SentryLogger SentryLogger;
|
||||
|
||||
public virtual Storage GetStorageForStableInstall() => null;
|
||||
|
||||
@ -110,7 +110,7 @@ namespace osu.Game
|
||||
|
||||
forwardLoggedErrorsToNotifications();
|
||||
|
||||
RavenLogger = new SentryLogger(this);
|
||||
SentryLogger = new SentryLogger(this);
|
||||
}
|
||||
|
||||
private void updateBlockingOverlayFade() =>
|
||||
@ -166,7 +166,7 @@ namespace osu.Game
|
||||
|
||||
dependencies.CacheAs(this);
|
||||
|
||||
dependencies.Cache(RavenLogger);
|
||||
dependencies.Cache(SentryLogger);
|
||||
|
||||
dependencies.Cache(osuLogo = new OsuLogo { Alpha = 0 });
|
||||
|
||||
@ -486,7 +486,7 @@ namespace osu.Game
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
RavenLogger.Dispose();
|
||||
SentryLogger.Dispose();
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
@ -2,10 +2,8 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Logging;
|
||||
using Sentry;
|
||||
|
||||
@ -102,7 +100,7 @@ namespace osu.Game.Utils
|
||||
return;
|
||||
|
||||
isDisposed = true;
|
||||
sentry.Dispose();
|
||||
sentry?.Dispose();
|
||||
sentry = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user