Browse Source

Move disposal logic out of the catch block

pull/65/head
Meivyn 2 years ago
parent
commit
3b5d322065
No known key found for this signature in database GPG Key ID: 8BDD3E48158B2F71
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      IPA.Loader/Logging/StdoutInterceptorPipes.cs

+ 6
- 4
IPA.Loader/Logging/StdoutInterceptorPipes.cs View File

@ -56,9 +56,10 @@ namespace IPA.Logging
catch (Exception ex)
{
Console.WriteLine(ex);
pipeServer.Close();
manualResetEvent.Dispose();
}
pipeServer.Close();
manualResetEvent.Dispose();
});
}
@ -82,9 +83,10 @@ namespace IPA.Logging
catch (Exception ex)
{
Console.WriteLine(ex);
pipeClient.Close();
manualResetEvent.Dispose();
}
pipeClient.Close();
manualResetEvent.Dispose();
});
}


Loading…
Cancel
Save