Fix log should be disposed correctly
This commit is contained in:
@@ -19,6 +19,8 @@ namespace OpenRA.Launcher
|
||||
{
|
||||
[STAThread]
|
||||
static int Main(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Debugger.IsAttached || args.Contains("--just-die"))
|
||||
return (int)Game.InitializeAndRun(args);
|
||||
@@ -34,6 +36,7 @@ namespace OpenRA.Launcher
|
||||
ExceptionHandler.HandleFatalError(e);
|
||||
return (int)RunStatus.Error;
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Log.Dispose();
|
||||
|
||||
@@ -78,6 +78,10 @@ namespace OpenRA.WindowsLauncher
|
||||
ExceptionHandler.HandleFatalError(e);
|
||||
return (int)RunStatus.Error;
|
||||
}
|
||||
finally
|
||||
{
|
||||
Log.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
static int RunInnerLauncher(string[] args)
|
||||
|
||||
Reference in New Issue
Block a user