This commit is contained in:
Albert Vaca Cintora 2023-06-27 13:15:11 +02:00
parent db546e7608
commit beb7e94cbb
3 changed files with 2 additions and 5 deletions

View file

@ -55,7 +55,7 @@ void BluetoothDeviceLink::dataReceived()
// qCDebug(KDECONNECT_CORE) << "BluetoothDeviceLink dataReceived" << packet;
NetworkPacket packet((QString()));
NetworkPacket packet;
NetworkPacket::unserialize(serializedPacket, &packet);
if (packet.hasPayloadTransferInfo()) {

View file

@ -235,8 +235,6 @@ void LanLinkProvider::udpBroadcastReceived()
NetworkPacket *receivedPacket = new NetworkPacket();
bool success = NetworkPacket::unserialize(datagram, receivedPacket);
// qCDebug(KDECONNECT_CORE) << "udp connection from " << receivedPacket->;
// qCDebug(KDECONNECT_CORE) << "Datagram " << datagram.data() ;
if (!success) {
@ -314,7 +312,6 @@ void LanLinkProvider::tcpSocketConnected()
return;
}
// TODO Delete me?
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
disconnect(socket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &LanLinkProvider::connectError);
#else

View file

@ -16,7 +16,7 @@ LoopbackDeviceLink::LoopbackDeviceLink(LoopbackLinkProvider *parent)
bool LoopbackDeviceLink::sendPacket(NetworkPacket &input)
{
NetworkPacket output((QString()));
NetworkPacket output;
NetworkPacket::unserialize(input.serialize(), &output);
// LoopbackDeviceLink does not need deviceTransferInfo