Fix state cleanup if LiStartConnection() fails
This commit is contained in:
parent
ec6c569130
commit
2d7bf5be82
7 changed files with 147 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue