diff options
author | Christian Beier <dontmind@freeshell.org> | 2018-10-22 00:39:50 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2018-10-22 00:40:53 +0200 |
commit | 2d939267a176bf4976dbad36399638956ad8cc34 (patch) | |
tree | ff110b3e3340b984f2c0952371aa91dce7a394c8 /libvncserver/tightvnc-filetransfer | |
parent | 73cb96fec028a576a5a24417b57723b55854ad7b (diff) | |
download | libtdevnc-2d939267a176bf4976dbad36399638956ad8cc34.tar.gz libtdevnc-2d939267a176bf4976dbad36399638956ad8cc34.zip |
tightvnc-filetransfer: when creating a new download thread, make sure the previous one ends
re #242
Diffstat (limited to 'libvncserver/tightvnc-filetransfer')
-rw-r--r-- | libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c b/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c index 31163d0..70e105f 100644 --- a/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c +++ b/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c @@ -517,8 +517,7 @@ HandleFileDownload(rfbClientPtr cl, rfbTightClientPtr rtcp) FreeFileTransferMsg(fileDownloadMsg); return; } - rtcp->rcft.rcfd.downloadInProgress = FALSE; - rtcp->rcft.rcfd.downloadFD = -1; + CloseUndoneFileDownload(cl, rtcp); if(pthread_create(&rtcp->rcft.rcfd.downloadThread, NULL, RunFileDownloadThread, (void*) cl) != 0) { |