summaryrefslogtreecommitdiffstats
path: root/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2018-10-21 23:44:39 +0200
committerChristian Beier <dontmind@freeshell.org>2018-10-21 23:44:39 +0200
commitf8912fee5a58fb3975eda2589f6d4686f0c1ae68 (patch)
tree7c6faa80bccb9a65ade8018f31b4951bae14988b /libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
parent89419fb1a0cef42b63528e6930f4e545cfef4c95 (diff)
downloadlibtdevnc-f8912fee5a58fb3975eda2589f6d4686f0c1ae68.tar.gz
libtdevnc-f8912fee5a58fb3975eda2589f6d4686f0c1ae68.zip
tightvnc-filetransfer: refactor CloseUndoneFileTransfer() into two functions
...for closing upload and download separately. re #242
Diffstat (limited to 'libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c')
-rw-r--r--libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c b/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
index 8e38f88..31163d0 100644
--- a/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
+++ b/libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
@@ -492,7 +492,7 @@ RunFileDownloadThread(void* client)
if(cl != NULL) {
rfbCloseClient(cl);
- CloseUndoneFileTransfer(cl, rtcp);
+ CloseUndoneFileDownload(cl, rtcp);
}
FreeFileTransferMsg(fileDownloadMsg);
@@ -592,7 +592,7 @@ HandleFileDownloadCancelRequest(rfbClientPtr cl, rfbTightClientPtr rtcp)
" reason <%s>\n", __FILE__, __FUNCTION__, reason);
pthread_mutex_lock(&fileDownloadMutex);
- CloseUndoneFileTransfer(cl, rtcp);
+ CloseUndoneFileDownload(cl, rtcp);
pthread_mutex_unlock(&fileDownloadMutex);
if(reason != NULL) {
@@ -835,7 +835,7 @@ HandleFileUploadDataRequest(rfbClientPtr cl, rfbTightClientPtr rtcp)
FreeFileTransferMsg(ftm);
}
- CloseUndoneFileTransfer(cl, rtcp);
+ CloseUndoneFileUpload(cl, rtcp);
if(pBuf != NULL) {
free(pBuf);
@@ -935,7 +935,7 @@ HandleFileUploadFailedRequest(rfbClientPtr cl, rfbTightClientPtr rtcp)
rfbLog("File [%s]: Method [%s]: File Upload Failed Request received:"
" reason <%s>\n", __FILE__, __FUNCTION__, reason);
- CloseUndoneFileTransfer(cl, rtcp);
+ CloseUndoneFileUpload(cl, rtcp);
if(reason != NULL) {
free(reason);