automatically close ongoing uploads when we stop sharing an extra file

This commit is contained in:
csoler 2021-09-21 20:47:25 +02:00
parent 2bd3fbf977
commit 9a440e077e
5 changed files with 30 additions and 4 deletions
libretroshare/src/ft

View file

@ -817,7 +817,10 @@ bool ftServer::ExtraFileAdd(std::string fname, const RsFileHash& hash, uint64_t
}
bool ftServer::ExtraFileRemove(const RsFileHash& hash)
{ return mFileDatabase->removeExtraFile(hash); }
{
mFtController->FileServerCancel(hash);
return mFileDatabase->removeExtraFile(hash);
}
bool ftServer::ExtraFileHash( std::string localpath, rstime_t period, TransferRequestFlags flags )
{