Fix regression where incoming transfers would fail

Introduced in 1d1fdf8ef5
This commit is contained in:
Albert Vaca 2018-09-08 00:40:20 +02:00
parent 08e965fd44
commit f78d9d9f5f

View file

@ -120,11 +120,11 @@ void LanDeviceLink::dataReceived()
if (packet.hasPayloadTransferInfo()) { if (packet.hasPayloadTransferInfo()) {
//qCDebug(KDECONNECT_CORE) << "HasPayloadTransferInfo"; //qCDebug(KDECONNECT_CORE) << "HasPayloadTransferInfo";
QVariantMap transferInfo = packet.payloadTransferInfo(); const QVariantMap transferInfo = packet.payloadTransferInfo();
QSharedPointer<QSslSocket> socket(new QSslSocket); QSharedPointer<QSslSocket> socket(new QSslSocket);
LanLinkProvider::configureSslSocket(socket.data(), transferInfo.value(QStringLiteral("deviceId")).toString(), true); LanLinkProvider::configureSslSocket(socket.data(), deviceId(), true);
// emit readChannelFinished when the socket gets disconnected. This seems to be a bug in upstream QSslSocket. // emit readChannelFinished when the socket gets disconnected. This seems to be a bug in upstream QSslSocket.
// Needs investigation and upstreaming of the fix. QTBUG-62257 // Needs investigation and upstreaming of the fix. QTBUG-62257