diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 2e143a7b0..82c6a800d 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -217,11 +217,12 @@ void LanLinkProvider::udpBroadcastReceived() } } -void LanLinkProvider::connectError() +void LanLinkProvider::connectError(QAbstractSocket::SocketError socketError) { QSslSocket* socket = qobject_cast(sender()); if (!socket) return; + qCDebug(KDECONNECT_CORE) << "Socket error" << socketError; qCDebug(KDECONNECT_CORE) << "Fallback (1), try reverse connection (send udp packet)" << socket->errorString(); NetworkPacket np(QLatin1String("")); NetworkPacket::createIdentityPacket(&np); diff --git a/core/backends/lan/lanlinkprovider.h b/core/backends/lan/lanlinkprovider.h index 21b78c01d..6304fceec 100644 --- a/core/backends/lan/lanlinkprovider.h +++ b/core/backends/lan/lanlinkprovider.h @@ -63,7 +63,7 @@ public Q_SLOTS: void onStop() override; void tcpSocketConnected(); void encrypted(); - void connectError(); + void connectError(QAbstractSocket::SocketError socketError); private Q_SLOTS: void udpBroadcastReceived();