summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <[email protected]>2018-11-10 17:33:00 +0100
committerChristian Beier <[email protected]>2018-11-10 17:33:00 +0100
commit495ffa3f3a213ab058eee1d7da48fa5ef71914d8 (patch)
tree8833407bcbc8ec85844136364fbfa7de671bce04
parent2d939267a176bf4976dbad36399638956ad8cc34 (diff)
downloadlibtdevnc-495ffa3f3a213ab058eee1d7da48fa5ef71914d8.tar.gz
libtdevnc-495ffa3f3a213ab058eee1d7da48fa5ef71914d8.zip
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
-rw-r--r--libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c b/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
index 70e105f..71fb085 100644
--- a/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
+++ b/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
@@ -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;
}