tightvnc-filetransfer: when creating a new download thread, make sure the previous one ends

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

@ -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) {

Loading…
Cancel
Save