mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 21:27:40 +00:00
Fix packet loss after connection
This commit is contained in:
parent
0e9dd25172
commit
71b034a025
@ -421,6 +421,8 @@ public class Device implements BaseLink.PacketReceiver {
|
|||||||
|
|
||||||
public void addLink(NetworkPacket identityPacket, BaseLink link) {
|
public void addLink(NetworkPacket identityPacket, BaseLink link) {
|
||||||
//FilesHelper.LogOpenFileCount();
|
//FilesHelper.LogOpenFileCount();
|
||||||
|
links.add(link);
|
||||||
|
link.addPacketReceiver(this);
|
||||||
|
|
||||||
this.protocolVersion = identityPacket.getInt("protocolVersion");
|
this.protocolVersion = identityPacket.getInt("protocolVersion");
|
||||||
|
|
||||||
@ -448,9 +450,6 @@ public class Device implements BaseLink.PacketReceiver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
links.add(link);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SharedPreferences globalSettings = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences globalSettings = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
byte[] privateKeyBytes = Base64.decode(globalSettings.getString("privateKey", ""), 0);
|
byte[] privateKeyBytes = Base64.decode(globalSettings.getString("privateKey", ""), 0);
|
||||||
@ -499,7 +498,6 @@ public class Device implements BaseLink.PacketReceiver {
|
|||||||
supportedPlugins = new Vector<>(PluginFactory.getAvailablePlugins());
|
supportedPlugins = new Vector<>(PluginFactory.getAvailablePlugins());
|
||||||
}
|
}
|
||||||
|
|
||||||
link.addPacketReceiver(this);
|
|
||||||
|
|
||||||
reloadPluginsFromSettings();
|
reloadPluginsFromSettings();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user