Comment out logging that is prone to races and crashes

This commit is contained in:
Cameron Gutman 2019-09-28 14:37:52 -07:00
parent b7a5c7be4b
commit 0b89325668

View File

@ -257,7 +257,8 @@ TcpListenerThreadProc(LPVOID Context)
}
if (connect(targetSocket, (PSOCKADDR)&targetAddress, sizeof(targetAddress)) == SOCKET_ERROR) {
printf("connect() failed: %d\n", WSAGetLastError());
// FIXME: This can race with reopening stdout and cause a crash in the CRT
//printf("connect() failed: %d\n", WSAGetLastError());
closesocket(acceptedSocket);
closesocket(targetSocket);
continue;