Fix file transfers
This commit is contained in:
parent
8736d2559e
commit
252ea4ba20
1 changed files with 2 additions and 3 deletions
|
@ -58,9 +58,8 @@ void DownloadJob::start()
|
||||||
connect(mSocket.data(), SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(done()));
|
connect(mSocket.data(), SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(done()));
|
||||||
//connect(mSocket.data(), &QAbstractSocket::connected, [=](){ qDebug() << "Connected"; });
|
//connect(mSocket.data(), &QAbstractSocket::connected, [=](){ qDebug() << "Connected"; });
|
||||||
|
|
||||||
// Cannot use read only, might be due to ssl handshake, getting QIODevice::ReadOnly error and no connection
|
mSocket->connectToHost(mAddress.toString(), mPort);
|
||||||
mSocket->connectToHostEncrypted(mAddress.toString(), mPort, QIODevice::ReadWrite);
|
mSocket->waitForConnected();
|
||||||
mSocket->waitForEncrypted();
|
|
||||||
// mSocket->connectToHost(mAddress, mPort, QIODevice::ReadOnly);
|
// mSocket->connectToHost(mAddress, mPort, QIODevice::ReadOnly);
|
||||||
// mSocket->waitForConnected();
|
// mSocket->waitForConnected();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue