Fix state cleanup if LiStartConnection() fails

This commit is contained in:
Cameron Gutman
2017-05-18 09:52:50 -07:00
parent ec6c569130
commit 2d7bf5be82
7 changed files with 147 additions and 11 deletions

View File

@@ -394,6 +394,10 @@ int startInputStream(void) {
err = PltCreateThread(inputSendThreadProc, NULL, &inputSendThread);
if (err != 0) {
if (inputSock != INVALID_SOCKET) {
closeSocket(inputSock);
inputSock = INVALID_SOCKET;
}
return err;
}