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(), &QAbstractSocket::connected, [=](){ qDebug() << "Connected"; });
|
||||
|
||||
// Cannot use read only, might be due to ssl handshake, getting QIODevice::ReadOnly error and no connection
|
||||
mSocket->connectToHostEncrypted(mAddress.toString(), mPort, QIODevice::ReadWrite);
|
||||
mSocket->waitForEncrypted();
|
||||
mSocket->connectToHost(mAddress.toString(), mPort);
|
||||
mSocket->waitForConnected();
|
||||
// mSocket->connectToHost(mAddress, mPort, QIODevice::ReadOnly);
|
||||
// mSocket->waitForConnected();
|
||||
|
||||
|
|
Loading…
Reference in a new issue