Fix state cleanup if LiStartConnection() fails

This commit is contained in:
Cameron Gutman committed 2017-05-18 09:52:50 -07:00
1 parent ec6c569130
commit 2d7bf5be82
7 files changed
+147 -11

No files matched your search

+4
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;
}