Skip to content

Commit

Permalink
don't close the child process handle right away, we need it later to …
Browse files Browse the repository at this point in the history
…terminate
  • Loading branch information
snaar committed Oct 25, 2018
1 parent 3bdebc1 commit 7b7deb7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion game_engine/networking/win32/WinConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ WinConnection::WinConnection(const std::string &command, NetworkingConfig config
CloseHandle(write[PIPE_TAIL]);
throw NetworkingError("Could not start process");
}
CloseHandle(piProcInfo.hProcess);
CloseHandle(piProcInfo.hThread);
read_pipe = read[PIPE_HEAD];
write_pipe = write[PIPE_TAIL];
Expand Down

0 comments on commit 7b7deb7

Please sign in to comment.