2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Same in LanLinkProvider

This commit is contained in:
Albert Vaca Cintora
2024-05-19 15:34:02 +02:00
parent efda9b95ab
commit 0d0672e59f

View File

@@ -108,11 +108,6 @@ public class LanLinkProvider extends BaseLinkProvider {
return;
}
if (!networkPacket.getType().equals(NetworkPacket.PACKET_TYPE_IDENTITY)) {
Log.e("KDE/LanLinkProvider", "Expecting an identity packet instead of " + networkPacket.getType());
return;
}
Log.i("KDE/LanLinkProvider", "identity packet received from a TCP connection from " + networkPacket.getString("deviceName"));
identityPacketReceived(networkPacket, socket, LanLink.ConnectionStarted.Locally);
}
@@ -132,11 +127,6 @@ public class LanLinkProvider extends BaseLinkProvider {
}
final String deviceId = identityPacket.getString("deviceId");
if (!identityPacket.getType().equals(NetworkPacket.PACKET_TYPE_IDENTITY)) {
Log.e("KDE/LanLinkProvider", "Expecting an UDP identity packet");
return;
}
String myId = DeviceHelper.getDeviceId(context);
if (deviceId.equals(myId)) {
//Ignore my own broadcast