Browse Source

Potentially fix a Win32Exception when restarting the game

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

+ 3
- 1
IPA.Loader/Logging/StdoutInterceptorPipes.cs View File

@ -23,7 +23,9 @@ namespace IPA.Logging
private static void InitializePipe(int stdHandle)
{
var pipeName = stdHandle == STD_OUTPUT_HANDLE ? "STD_OUT_PIPE" : "STD_ERR_PIPE";
// Makes sure that we won't get a ERROR_PIPE_BUSY Win32Exception
// if the pipe wasn't closed fast enough when restarting the game.
var pipeName = Guid.NewGuid().ToString();
var serverThread = InstantiateServerThread(pipeName, stdHandle);
serverThread.Start();
var clientThread = InstantiateClientThread(pipeName, stdHandle);


Loading…
Cancel
Save