Commit fb2ae883 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Anthony Léonard

datatransfer: enable requested-transfer

For debug purposes, all transfers were accepted by the daemon.

The request for validation of incoming file transfers is now active.
It relies on the accept method from IncomingFileTransfer that sets the
local path of the downloaded file, and starts the transfer.

Change-Id: Ib6ee870355604e3cec539ee138017ac79e3a818b
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent ecf3e901
......@@ -256,13 +256,13 @@ std::string
IncomingFileTransfer::requestFilename()
{
emit(DRing::DataTransferEventCode::wait_host_acceptance);
// Now wait for DataTransferFacade::acceptFileTransfer() call
#if 0
#if 1
// Now wait for DataTransferFacade::acceptFileTransfer() call
filenamePromise_.get_future().wait();
return info_.path;
#else
// DEBUG
// For DEBUG only
char filename[] = "/tmp/ring_XXXXXX";
if (::mkstemp(filename) < 0)
throw std::system_error(errno, std::generic_category());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment