tightvnc-filetransfer: do not close stuff from within a thread

... as this crashes badly and the client is closed by the main thread machinery afterwards.

re #242
pull/3/head
Christian Beier 6 years ago
parent 2d939267a1
commit 495ffa3f3a
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -489,12 +489,6 @@ RunFileDownloadThread(void* client)
if(rfbWriteExact(cl, fileDownloadMsg.data, fileDownloadMsg.length) < 0) {
rfbLog("File [%s]: Method [%s]: Error while writing to socket \n"
, __FILE__, __FUNCTION__);
if(cl != NULL) {
rfbCloseClient(cl);
CloseUndoneFileDownload(cl, rtcp);
}
FreeFileTransferMsg(fileDownloadMsg);
return NULL;
}

Loading…
Cancel
Save