Skip to content

Commit

Permalink
[skip ci] fix issue 2779
Browse files Browse the repository at this point in the history
  • Loading branch information
breadbyte committed Aug 14, 2024
1 parent 8bdb20a commit c69cdad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MinecraftClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static class Program
public static readonly string? BuildInfo = null;

private static Tuple<Thread, CancellationTokenSource>? offlinePrompt = null;
private static IDisposable _sentrySdk;
private static IDisposable? _sentrySdk = null;
private static bool useMcVersionOnce = false;
private static string settingsIniPath = "MinecraftClient.ini";

Expand Down Expand Up @@ -213,7 +213,7 @@ static void Main(string[] args)
}

if (!Config.Main.Advanced.EnableSentry)
_sentrySdk.Dispose();
_sentrySdk?.Dispose();
}

//Other command-line arguments
Expand Down

0 comments on commit c69cdad

Please sign in to comment.